A method for opening a file being executed by an electronic device comprising an operating system, comprising: receiving a file opening request, and obtaining format information of a file to be opened indicated by the file opening request; in response to determining that a target application for opening the file to be opened is not stored locally, searching for application information of the target application according to the format information; providing in a current interface of the electronic device, an application entry of the target application according to the application information, wherein a display form of the application entry is a widget or a shortcut; in response to triggering the application entry: obtaining a configuration file corresponding to the target application, the configuration file comprising a statement describing an interface of the target application, the statement comprising data required for displaying the interface and run logic of the interface, and the data at least comprising display elements required to be displayed in the interface; calling a framework file built in the operating system of the electronic device based on the configuration file to parse the statement into the display elements; converting the display elements into a native view of the target application based on a correspondence relationship between the display elements and the native view, the correspondence relationship being provided in the framework file; performing local rendering based on the native view to generate a local rendering of the interface of the target application; and opening the file to be opened in the local rendering of the interface of the target application. receiving a file opening request, and obtaining format information of a file to be opened indicated by the file opening request; in response to determining that a target application for opening the file to be opened is not stored locally, searching for application information of the target application according to the format information; providing in a current interface of the electronic device, an application entry of the target application according to the application information, wherein a display form of the application entry is a widget or a shortcut; in response to triggering the application entry: obtaining a configuration file corresponding to the target application, the configuration file comprising a statement describing an interface of the target application, the statement comprising data required for displaying the interface and run logic of the interface, and the data at least comprising display elements required to be displayed in the interface; calling a framework file built in the operating system of the electronic device based on the configuration file to parse the statement into the display elements; converting the display elements into a native view of the target application based on a correspondence relationship between the display elements and the native view, the correspondence relationship being provided in the framework file; performing local rendering based on the native view to generate a local rendering of the interface of the target application; and opening the file to be opened in the local rendering of the interface of the target application. obtaining a configuration file corresponding to the target application, the configuration file comprising a statement describing an interface of the target application, the statement comprising data required for displaying the interface and run logic of the interface, and the data at least comprising display elements required to be displayed in the interface; calling a framework file built in the operating system of the electronic device based on the configuration file to parse the statement into the display elements; converting the display elements into a native view of the target application based on a correspondence relationship between the display elements and the native view, the correspondence relationship being provided in the framework file; performing local rendering based on the native view to generate a local rendering of the interface of the target application; and opening the file to be opened in the local rendering of the interface of the target application.