Interface loading method and device, electronic equipment and readable storage medium

By running the data model management algorithm in the Flutter application, only components related to data changes are updated, which solves the problem of component tree reloading caused by data changes and improves application performance and response speed.

CN118796322APending Publication Date: 2024-10-18CHINA MOBILE M2M +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311765707.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-20
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

The Flutter cross-platform application framework often triggers the reloading of the entire component tree when data changes, leading to performance bottlenecks and degraded user experience.

Method used

Fine-grained interface updates are achieved by running the data model management algorithm in the running state of the application, determining changes to data model instances, and updating only relevant display components without reloading the entire component tree.

Benefits of technology

It improves application performance and response speed, reduces unnecessary redrawing and layout calculations, and improves development efficiency and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118796322A_ABST
    Figure CN118796322A_ABST
Patent Text Reader

Abstract

The invention discloses an interface loading method and device, electronic equipment and a readable storage medium. The interface loading method comprises the steps that under the condition that an application program is in a running state, a data model management algorithm is run, and the data model management algorithm is used for obtaining running data of each data model instance; based on the data model management algorithm, determining a first data model instance in the application program, the first data model instance being a data model instance whose operation data information is changed; and obtaining a display component related to the first data model instance, and sending the changed operation data information of the first data model instance to the display component related to the first data model instance, so that the display component updates display content according to the changed operation data information. According to the embodiment of the invention, when the display content corresponding to the interface component is updated, the performance and the response speed of the application program are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of computer software, and in particular, relates to an interface loading method, device, electronic device and readable storage medium. Background Art

[0002] Flutter cross-platform application framework (an open source cross-platform application development framework) is a software development kit for building cross-platform applications. It can implement a set of code to support mobile, desktop and Web at the same time. It usually requires the implementation of both the computer client desktop version and the mobile version of the application.

[0003] Although Flutter provides a wealth of UI components and functions, when the data in an application changes, it usually triggers a reload of the entire component tree, resulting in performance bottlenecks and degrading the user experience of using the application. Summary of the invention

[0004] The embodiments of the present application provide an interface loading method, apparatus, device and readable storage medium, which do not require reloading the entire component tree when updating the display content corresponding to the interface component, thereby improving the performance and response speed of the application.

[0005] In a first aspect, an embodiment of the present application provides an interface loading method, comprising:

[0006] When the application is in a running state, running the data model management algorithm, wherein the data model running algorithm is used to obtain running data of each data model instance;

[0007] Based on the data model management algorithm, determine a first data model instance in the application, wherein the first data model instance is an example of a data model in which the running data information changes;

[0008] Obtain the display component related to the first data model instance, and send the changed operation data information of the first data model instance to the display component related to the first data model instance, so that the display component related to the first data model instance updates the display content according to the changed operation data information.

[0009] In some implementations of the first aspect, the main function of the application includes a data model management algorithm, and the data model management algorithm is the root node of each data model instance.

[0010] In some implementations of the first aspect, the display interface of the application includes one or more display components, and each display component corresponds one-to-one to a data model instance in the application;

[0011] Wherein, when the target display component receives the control operation, the first data model instance is used to generate response data, the response data includes the changed operation data information, and the first data model instance corresponds to the target display component.

[0012] In some implementations of the first aspect, before running the data model management algorithm, the method further includes:

[0013] Sending a data access request to the state management library so that the state management library generates feedback information, wherein the feedback information includes a data model management algorithm corresponding to the application program;

[0014] When the feedback information is received, a root node is created in the main function of the application, wherein the root node includes a data model management algorithm corresponding to the application.

[0015] In some implementations of the first aspect, the method further includes:

[0016] Get the data model in the application;

[0017] A data sharing relationship between the data model management algorithm and the data model is established to obtain a data model instance.

[0018] In some implementations of the first aspect, obtaining a display component related to the first data model instance includes:

[0019] Obtain a child node of a first data model instance in an application, wherein the child node corresponds to a second data model instance;

[0020] The display component corresponding to each second data model instance and the target display component corresponding to the first data model instance are determined as display components related to the first data model instance.

[0021] In a second aspect, an embodiment of the present application provides an interface loading device, comprising:

[0022] A processing module, used to run a data model management algorithm when the application is in a running state, wherein the data model running algorithm is used to obtain running data of each data model instance;

[0023] The processing module is further used to determine a first data model instance in the application based on the data model management algorithm, wherein the first data model instance is a data model example in which the running data information changes;

[0024] The acquisition module is used to acquire the display component related to the first data model instance, and send the changed operation data information of the first data model instance to the display component related to the first data model instance, so that the display component related to the first data model instance updates the display content according to the changed operation data information.

[0025] In some implementations of the second aspect, the main function of the application includes a data model management algorithm, and the data model management algorithm is the root node of each data model instance.

[0026] In a third aspect, the present application provides an electronic device comprising: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, it implements the interface loading method described in the first aspect or any implementable manner of the first aspect.

[0027] In a fourth aspect, the present application provides a computer-readable storage medium having computer program instructions stored thereon, and when the computer program instructions are executed by a processor, the interface loading method described in the first aspect or any implementable manner of the first aspect is implemented.

[0028] In a fifth aspect, an embodiment of the present application provides a computer program product. When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the interface loading method as described in the first aspect or any implementable manner of the first aspect.

[0029] The interface loading method, device, equipment and readable storage medium of the embodiment of the present application run the data model management algorithm when the application is in the running state, so as to obtain the running data of each data model instance. Thus, based on the data model management algorithm, the first data model instance whose running data information has changed can be found. Next, the display component related to the first data model instance can be obtained, and the changed running data information of the first data model instance can be sent to the display component related to the first data model instance, so that the display component updates the display content according to the changed running data information. Based on this, when updating the display content corresponding to the interface component, it is only necessary to update the display content of the display component related to the running example, without reloading the entire component tree, which effectively improves the performance and response speed of the application. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0031] Figure 1It is a flowchart of an interface loading method provided in an embodiment of the present application;

[0032] Figure 2 It is a structural schematic diagram of an interface loading device provided in an embodiment of the present application;

[0033] Figure 3 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0034] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.

[0035] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0036] Flutter cross-platform application framework (an open source cross-platform application development framework) is an SDK (Software Development Kit) for building cross-platform applications. It can implement a set of code to support mobile, desktop and Web at the same time. It usually requires the implementation of both the computer client desktop version and the mobile version of the application.

[0037] At present, in the related technology, Flutter provides a hot reload technology function, which can quickly preview the changes of the application during the development process. However, the existing hot reload function has the following disadvantages: 1. Overall reload: The existing hot reload function often reloads the entire application, even if only part of the code has changed. This overall reload method will cause the application to flash or freeze briefly during debugging and testing, affecting development efficiency and user experience. 2. Lost state: Hot reload will cause the state of the application to be lost. When developers debug and modify in the application, the loaded state will be reset, causing users to re-operate and re-reach the previous state, which brings certain inconveniences to development and testing. 3. Data loss: Due to the overall reload method, hot reload will cause data loss in the application. If the application is processing operations such as user input or network requests, the intermediate state of these operations will be lost and the operation will need to be re-performed, which may lead to inconsistent data or a decline in user experience.

[0038] Although Flutter provides a wealth of UI components and functions, when the data in an application changes, it usually triggers a reload of the entire component tree, resulting in performance bottlenecks and degrading the user experience of using the application.

[0039] To this end, embodiments of the present application provide an interface loading method, apparatus, device, and computer-readable storage medium, which eliminates the need to reload the entire component tree when updating the display content corresponding to an interface component, thereby improving the performance and response speed of the application.

[0040] The following first introduces the interface loading method provided in the embodiment of the present application.

[0041] Figure 1 FIG. 1 is a flow chart of an interface loading method provided by an embodiment of the present application. Figure 1 As shown, the method may include the following steps:

[0042] Step 101, when the application is in a running state, running a data model management algorithm, wherein the data model running algorithm is used to obtain running data of each data model instance;

[0043] Step 102, based on the data model management algorithm, determining a first data model instance in the application, wherein the first data model instance is a data model example in which the running data information changes;

[0044] Step 103, obtaining the display component related to the first data model instance, and sending the changed operation data information of the first data model instance to the display component related to the first data model instance, so that the display component related to the first data model instance updates the display content according to the changed operation data information.

[0045] The above steps are described in detail below, as shown below.

[0046] Specifically, in step 101, during the running of the application, the electronic device may display an application interface, which includes one or more display components, such as text boxes, numerical control controls, etc. Each display component displayed in the application interface may correspond to a data model instance. The data model instance refers to a data model corresponding to the display component in a running state.

[0047] The application includes a data model management algorithm, so that during the operation of the application, the data model management algorithm runs synchronously, and the operation data of each data model instance can be obtained based on the data model management algorithm.

[0048] The data model management algorithm includes the state management function and data sharing function of the data model, wherein data sharing refers to the data sharing relationship between the data model management algorithm and the data model. The data model management algorithm can understand the operating data of the data model in real time.

[0049] For example, in an application developed based on the Flutter framework, the application can introduce the ChangeNotifierProvider in the provider library to wrap the data model, thereby implementing the corresponding functions of the data model management algorithm. Specifically, the data model can be wrapped using the consumer function control to check whether the running data of the subscribed data model has changed. The use of the consumer function control to wrap the data model can be expressed as "Consumer <datamodel>”

[0050] Regarding the above-mentioned steps 102 and 103, the data model management algorithm obtains the operating data of each data model instance, so as to understand in real time whether the operating data of the data model instance has changed, and determines the data model instance whose operating data information has changed as the first data model instance.

[0051] Next, the display component related to the first data model instance may be obtained, and the changed operation data information of the first data model instance may be sent to the display component related to the first data model instance, so that the display component updates the display content according to the changed operation data information.

[0052] In some embodiments, display components related to the first data model instance are obtained, and specifically the following steps can be referred to: obtaining child nodes of the first data model instance in the application, wherein the child nodes correspond to the second data model instance; determining the display components corresponding to each second data model instance and the target display components corresponding to the first data model instance as display components related to the first data model instance.

[0053] Exemplarily, the application interface data is updated. When the data changes, the method in the data model DataModel class is called to update it, and the listener is notified through the notifyListeners method to notify the relevant sub-components whose states are changed by the data change to reload. Here, the entire application interface component Widget tree will not be reloaded, but only the related Widgets with data changes will be reloaded without affecting other components.

[0054] According to an embodiment of the present application, when updating the display content corresponding to the interface component, it is only necessary to update the display content of the display component related to the example to be run. The application notifies the relevant widgets of the page to be reloaded and updated according to the relevant changes in the data, rather than reloading and refreshing the widget tree of the entire page, thereby improving the development and testing efficiency of R&D personnel.

[0055] In some embodiments, the main function of the application includes a data model management algorithm, which is the root node of each data model instance.

[0056] Exemplarily, continuing to take the example of an application developed based on the Flutter framework, in which the application introduces the ChangeNotifierProvider in the provider library to wrap the data model (DataModel), the main function of the application, that is, the main() function, is used as the entry point of the application. The root component build method can be used to build the data model management algorithm, so that the data model management algorithm is the root node of each data model instance.

[0057] Based on this, during the operation of the application, the data model management algorithm can run through the entire life cycle of the application and connect each data model instance in the application, so as to ensure that all parts of the application can respond and reflect the changes of the data model instance (DataModel) in real time, and promptly notify the display components related to the first data model instance, so that the display components related to the first data model instance update the display content according to the changed operating data information, so that the application can run more efficiently and responsively.

[0058] In some embodiments, before running the data model management algorithm, the method also includes: sending a data access request to the state management library so that the state management library generates feedback information, wherein the feedback information includes the data model management algorithm corresponding to the application; upon receiving the feedback information, creating a root node in the main function of the application, wherein the root node includes the data model management algorithm corresponding to the application.

[0059] The state management library may include one or more data model management algorithms. Different data model management algorithms may be adapted to different applications. Specifically, the state management library may include an application identifier in the data access request sent by the state management library, and the state management library may feed back the data model management algorithm corresponding to the application identifier to the application.

[0060] Continuing with the example of an application developed based on the Flutter framework, the state management library can be the Provider library for state management in the Flutter framework. For example, add the Provider dependency in the project's pubspec.yaml file, save the file, and execute the flutter packages get command to send a data access request to the state management library. Next, when receiving feedback information, import the data model management algorithm corresponding to the application identifier in the Provide library into the Flutter application.

[0061] Next, a root node can be created in the main function of the application, wherein the root node includes the data model management algorithm corresponding to the application. Thus, the data model management algorithm can run through the entire life cycle of the application and connect each data model instance in the application, thereby ensuring that all parts of the application can respond to and reflect changes in the data model instance in real time, and promptly notify the display component related to the first data model instance, so that the display component related to the first data model instance updates the display content according to the changed operating data information, so that the application can run more efficiently and responsively.

[0062] In some embodiments, the method may further include the following steps: obtaining a data model in an application; and establishing a data sharing relationship between a data model management algorithm and the data model to obtain a data model instance.

[0063] Specifically, after the data model management algorithm and the data sharing relationship between the data model in the application, a data model instance can be established.

[0064] Create a data model class, which needs to inherit from the ChangeNotifier class in the Provider library. This data model class is used to manage the state that requires fine-grained reload control. This class is responsible for storing data that needs to be shared and controlled, and can contain one or more attributes and methods related to data operations. It also needs to call the notifyListeners method to notify related components to reload when the data is updated.

[0065] In some embodiments, the display interface of an application includes one or more display components, each display component corresponds one-to-one to a data model instance in the application; wherein, when a target display component receives a control operation, a first data model instance is used to generate response data, the response data includes changed operating data information, and the first data model instance corresponds to the target display component.

[0066] Specifically, a display component is, for example, a text box, a numerical control control, or a menu bar. The display content in the application interface includes one or more display components.

[0067] Corresponding to each display component, the data model instance can detect in real time whether the user performs a control operation on the display component, where the control operation includes: a click operation, a drag operation, a slide operation, and the like.

[0068] In an embodiment of the present application, the target display component is a display component that receives a control operation, and the target display component corresponds to the first data model instance. Thus, the first data model instance is used to generate response data, and the response data includes changed operation data information.

[0069] For example, the first data model instance is associated with a display component (Text) in the counter for displaying text. When the user operates the display component, the display component (Text) will rebuild and update the counter value displayed.

[0070] Optionally, if Provider.of <datamodel>(context,listen:false) to get the instance of DataModel and call the increment method in the onPressed callback to increase the value of the counter. The listen parameter is set to false, indicating that you do not want to reload the parent component of the build update Consumer here.

[0071] It can be understood that the number of target display components can be one or more. When the number of target display components is more than one, the number of first data model instances is also more than one package.

[0072] According to an embodiment of the present application, when a user performs a control operation on a target display component, in response to the control operation, the first data model instance generates changed operating data so that the target display component updates the display content, thereby enabling the application interface to dynamically respond to data changes.

[0073] According to the embodiment of the present application, the fine-grained hot reload method based on the Provider can only reload and update the sub-components related to the data status according to the changes in the attribute status in the data model, without reloading the entire application. This precise reloading method greatly reduces unnecessary reloading operations and improves development efficiency. Since only the components related to data changes will be reloaded, the fine-grained hot reload method based on the Provider reduces unnecessary redrawing and layout calculations, thereby improving the performance of the application. Compared with overall reloading, reloading only related components can reduce CPU and memory usage and improve the responsiveness of the application. The fine-grained hot reload method based on the Provider allows developers to debug and modify more conveniently. By reloading only the components related to the data, developers can preview and verify code changes more quickly, speeding up the iteration of application development.

[0074] Based on the same inventive concept, the present application also provides an interface loading device 200 corresponding to the above interface loading method. Figure 2 Provide detailed explanation.

[0075] Figure 2 is a structural diagram of an interface loading device provided in an embodiment of the present application, such as Figure 2 As shown, the interface loading device 200 may include: a processing module 201 and an acquisition module 202 .

[0076] A processing module, used to run the data model management algorithm when the application is in a running state, wherein the data model running algorithm is used to obtain running data of each data model instance;

[0077] The processing module is further used to determine a first data model instance in the application based on the data model management algorithm, wherein the first data model instance is a data model example in which the running data information changes;

[0078] An acquisition module is used to acquire the display component related to the first data model instance, and send the changed operation data information of the first data model instance to the display component related to the first data model instance, so that the display component related to the first data model instance updates the display content according to the changed operation data information.

[0079] In some embodiments, the main function of the application includes the data model management algorithm, and the data model management algorithm is the root node of each of the data model instances.

[0080] In some embodiments, the display interface of the application includes one or more display components, and each of the display components corresponds one-to-one to a data model instance in the application;

[0081] Wherein, when the target display component receives a control operation, the first data model instance is used to generate response data, the response data includes the changed operation data information, and the first data model instance corresponds to the target display component.

[0082] In some embodiments, before running the data model management algorithm, the method further includes:

[0083] Sending a data access request to a state management library so that the state management library generates feedback information, wherein the feedback information includes a data model management algorithm corresponding to the application;

[0084] When the feedback information is received, a root node is created in the main function of the application, wherein the root node includes a data model management algorithm corresponding to the application.

[0085] In some embodiments, the method further comprises:

[0086] Obtain a data model in the application;

[0087] A data sharing relationship is established between the data model management algorithm and the data model to obtain the data model instance.

[0088] In some embodiments, obtaining a display component related to the first data model instance includes:

[0089] Obtain a child node of the first data model instance in the application, wherein the child node corresponds to a second data model instance;

[0090] The display component corresponding to each of the second data model instances and the target display component corresponding to the first data model instance are determined as display components related to the first data model instance.

[0091] It can be understood that the interface loading device 200 of the embodiment of the present application can correspond to the execution entity of the interface loading method provided in the embodiment of the present application. The specific details of the operation and / or function of each module / unit of the interface loading device 200 can be found in the description of the corresponding parts of the interface loading method provided in the above-mentioned embodiment of the present application. For the sake of brevity, they will not be repeated here.

[0092] The interface loading device of the embodiment of the present application, according to the embodiment of the present application, when updating the display content corresponding to the interface component, only needs to update the display content of the display component related to the example to be run, without reloading the entire component tree, thereby effectively improving the performance and response speed of the application.

[0093] Figure 3 FIG. 1 is a schematic diagram showing the structure of an electronic device provided by an embodiment of the present application. Figure 3 As shown, the device may include a processor 301 and a memory 302 storing computer program instructions.

[0094] Specifically, the processor 301 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0095] The memory 302 may include a large capacity memory for information or instructions. By way of example and not limitation, the memory 302 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive, or a combination of two or more of these. In one example, the memory 302 may include a removable or non-removable (or fixed) medium, or the memory 302 is a non-volatile solid-state memory. The memory 302 may be inside or outside the electronic device.

[0096] The memory may include read-only memory (ROM), random access memory (RAM), magnetic disk storage media devices, optical storage media devices, flash memory devices, electrical, optical or other physical / tangible memory storage devices. Thus, typically, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to an aspect of the present disclosure.

[0097] The processor 301 implements the method described in the embodiment of the present application by reading and executing the computer program instructions stored in the memory 302, and achieves the corresponding technical effect achieved by executing the method in the embodiment of the present application, which will not be repeated here for the sake of brevity.

[0098] In one example, the electronic device may further include a communication interface 303 and a bus 304. Figure 3 As shown, the processor 301, the memory 302, and the communication interface 303 are connected via a bus 304 and communicate with each other.

[0099] The communication interface 303 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.

[0100] Bus 304 includes hardware, software or both, and the components of online information flow billing equipment are coupled to each other. For example, but not limitation, the bus may include Accelerated Graphics Port (AGP) or other graphics bus, Enhanced Industry Standard Architecture (EISA) bus, Front Side Bus (FSB), Hyper Transport (HT) interconnection, Industry Standard Architecture (ISA) bus, InfiniBand interconnection, Low Pin Count (LPC) bus, Memory bus, Micro Channel Architecture (MCA) bus, Peripheral Component Interconnect (PCI) bus, PCI-Express (PCI-X) bus, Serial Advanced Technology Attachment (SATA) bus, Video Electronics Standards Association Local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 304 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the present application considers any suitable bus or interconnection.

[0101] The electronic device can execute the interface loading method in the embodiment of the present application, thereby achieving the corresponding technical effects of the interface loading method described in the embodiment of the present application.

[0102] In addition, in combination with the interface loading method in the above embodiment, the embodiment of the present application may provide a readable storage medium to implement. The readable storage medium stores computer program instructions; when the computer program instructions are executed by the processor, any one of the interface loading methods in the above embodiment is implemented. Examples of readable storage media may be non-transitory machine-readable media, such as electronic circuits, semiconductor memory devices, read-only memories (ROM), floppy disks, compact discs (CD-ROM), optical disks, hard disks, etc.

[0103] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.

[0104] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), appropriate firmware, plug-in, function card, etc. When implemented in software, the elements of the present application are programs or code segments used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or communication link by a data signal carried in a carrier. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, read-only memory (Read-Only Memory, ROM), flash memory, erasable read-only memory (Erasable ReadOnly Memory, EROM), floppy disks, compact disc read-only memory (Compact Disc Read-Only Memory, CD-ROM), optical discs, hard disks, optical fiber media, radio frequency (Radio Frequency, RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.

[0105] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.

[0106] An embodiment of the present application also provides a computer-readable storage medium, on which computer program instructions are stored; when the computer program instructions are executed by a processor, the interface loading method provided in the embodiment of the present application is implemented.

[0107] In addition, in combination with the interface loading method, device, and readable storage medium in the above embodiments, the present application embodiment can provide a computer program product for implementation. When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes any one of the interface loading methods in the above embodiments.

[0108] Aspects of the present disclosure are described above with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.

[0109] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.< / datamodel> < / datamodel>

Claims

1. An interface loading method, characterized in that: include: When the application is in a running state, running a data model management algorithm, wherein the data model running algorithm is used to obtain running data of each data model instance; Based on the data model management algorithm, determining a first data model instance in the application, wherein the first data model instance is an example of a data model in which running data information has changed; Obtain the display component related to the first data model instance, and send the changed operation data information of the first data model instance to the display component related to the first data model instance, so that the display component related to the first data model instance updates the display content according to the changed operation data information.

2. The method according to claim 1, characterized in that The main function of the application includes the data model management algorithm, and the data model management algorithm is the root node of each of the data model instances.

3. The method according to claim 1, characterized in that The display interface of the application includes one or more display components, each of which corresponds one-to-one to a data model instance in the application; Wherein, when the target display component receives a control operation, the first data model instance is used to generate response data, the response data includes the changed operation data information, and the first data model instance corresponds to the target display component.

4. The method according to claim 1, characterized in that Before running the data model management algorithm, the method further includes: Sending a data access request to a state management library so that the state management library generates feedback information, wherein the feedback information includes a data model management algorithm corresponding to the application; When the feedback information is received, a root node is created in the main function of the application, wherein the root node includes a data model management algorithm corresponding to the application.

5. The method according to claim 4, characterized in that The method further comprises: Obtain a data model in the application; A data sharing relationship is established between the data model management algorithm and the data model to obtain the data model instance.

6. The method according to claim 1, characterized in that The obtaining of the display component related to the first data model instance includes: Obtain a child node of the first data model instance in the application, wherein the child node corresponds to a second data model instance; The display component corresponding to each of the second data model instances and the target display component corresponding to the first data model instance are determined as display components related to the first data model instance.

7. An interface loading device, characterized in that: The device comprises: A processing module, used for running a data model management algorithm when the application is in a running state, wherein the data model running algorithm is used for obtaining running data of each data model instance; The processing module is further used to determine a first data model instance in the application based on the data model management algorithm, wherein the first data model instance is a data model example in which the running data information changes; An acquisition module is used to acquire the display component related to the first data model instance, and send the changed operation data information of the first data model instance to the display component related to the first data model instance, so that the display component related to the first data model instance updates the display content according to the changed operation data information.

8. The device according to claim 7, characterized in that The main function of the application includes the data model management algorithm, and the data model management algorithm is the root node of each of the data model instances.

9. An electronic device, characterized in that: The device comprises: a processor, and a memory storing computer program instructions; The processor reads and executes the computer program instructions to implement the interface loading method according to any one of claims 1-6.

10. A readable storage medium, characterized in that: The readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the interface loading method according to any one of claims 1 to 6 is implemented.