CN114090118B - Method, device, equipment and storage medium for starting applet - Google Patents

Method, device, equipment and storage medium for starting applet Download PDF

Info

Publication number
CN114090118B
CN114090118B CN202111336124.3A CN202111336124A CN114090118B CN 114090118 B CN114090118 B CN 114090118B CN 202111336124 A CN202111336124 A CN 202111336124A CN 114090118 B CN114090118 B CN 114090118B
Authority
CN
China
Prior art keywords
applet
target page
page
data
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111336124.3A
Other languages
Chinese (zh)
Other versions
CN114090118A (en
Inventor
陈都
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202111336124.3A priority Critical patent/CN114090118B/en
Publication of CN114090118A publication Critical patent/CN114090118A/en
Application granted granted Critical
Publication of CN114090118B publication Critical patent/CN114090118B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45504Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators
    • G06F9/45529Embedded in an application, e.g. JavaScript in a Web browser
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The disclosure provides a method, a device, equipment, a storage medium and a program product for starting an applet, and relates to the technical field of computers, in particular to the technical fields of clients, applets and the like. The specific implementation scheme is as follows: loading an applet framework in response to a launch operation for a target applet; in the loading process of the applet frame, loading a lightweight frame; acquiring target page data corresponding to a target applet, wherein the target page data is rendered by a server; and displaying the target page according to the lightweight frame and the target page data.

Description

Method, device, equipment and storage medium for starting applet
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to the technical fields of clients, applets, and the like.
Background
An applet is a purely offline working runtime ecology that is physically isolated by a rendering layer and a logical layer. Because the applet is based on standard JavaScript extended DSL (Domain Specific Language ) syntax, and held by localization capabilities, the applet has a development efficiency close to HTML5 and a user experience close to the local application, which is popular with developers.
Disclosure of Invention
The present disclosure provides a method, apparatus, device, storage medium, and program product for launching an applet.
According to an aspect of the present disclosure, there is provided a method of starting an applet, comprising: loading an applet framework in response to a launch operation for a target applet; in the loading process of the applet frame, loading a lightweight frame; acquiring target page data corresponding to the target applet, wherein the target page data is rendered by a server; and displaying the target page according to the lightweight frame and the target page data.
According to another aspect of the present disclosure, there is provided an apparatus for starting an applet, comprising: a first loading module for loading the applet framework in response to a start operation for the target applet; the second loading module is used for loading the lightweight frame in the loading process of the applet frame; the acquisition module is used for acquiring target page data corresponding to the target applet, wherein the target page data is rendered by a server; and the display module is used for displaying the target page according to the lightweight frame and the target page data.
Another aspect of the present disclosure provides an electronic device, comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the methods shown in the embodiments of the present disclosure.
According to another aspect of the disclosed embodiments, there is provided a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the methods shown in the disclosed embodiments.
According to another aspect of the disclosed embodiments, there is provided a computer program product comprising a computer program/instruction, characterized in that the computer program/instruction, when executed by a processor, implements the steps of the method shown in the disclosed embodiments.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the disclosure, nor is it intended to be used to limit the scope of the disclosure. Other features of the present disclosure will become apparent from the following specification.
Drawings
The drawings are for a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
FIG. 1 is a schematic view of an application scenario of a method, apparatus, electronic device, and storage medium for initiating an applet according to an embodiment of the present disclosure;
FIG. 2 schematically illustrates a flow chart of a method of launching a applet in accordance with an embodiment of the disclosure;
FIG. 3 schematically illustrates a flow chart of a method of loading a lightweight frame according to an embodiment of the disclosure;
FIG. 4 schematically illustrates a flow chart of a method of acquiring target page data according to an embodiment of the disclosure;
FIG. 5 schematically illustrates a flow chart of a method of initiating a applet in accordance with an embodiment of the disclosure;
FIG. 6 schematically illustrates a block diagram of an apparatus for initiating a applet in accordance with an embodiment of the disclosure; and
FIG. 7 schematically illustrates a block diagram of an example electronic device that may be used to implement embodiments of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present disclosure to facilitate understanding, and should be considered as merely exemplary. Accordingly, one of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
An application scenario of the method and apparatus provided by the present disclosure will be described below with reference to fig. 1.
Fig. 1 is an application scenario schematic diagram of a method, an apparatus, an electronic device, and a storage medium for starting an applet according to an embodiment of the present disclosure. It should be noted that fig. 1 illustrates only an example of an application scenario in which the embodiments of the present disclosure may be applied to help those skilled in the art understand the technical content of the present disclosure, but it does not mean that the embodiments of the present disclosure may not be applied to other devices, systems, environments, or scenarios.
As shown in fig. 1, the application scenario 100 includes a terminal device 110 and a data server 120.
Terminal device 110 may interact with data server 120 over a network to receive or send messages, etc. The terminal device 110 may have a host Application (App) 111 running therein. Host applications 111 may include, for example, shopping class applications, web browser applications, search class applications, instant messaging tools, mailbox clients, social platform software, and the like (just examples).
Terminal device 110 may be a variety of electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The data server 120 may be a server for providing data services. The data server 120 may be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so as to solve the defects of large management difficulty and weak service expansibility in the traditional physical hosts and VPS service (Virtual Private Server or VPS for short). The data server 120 may also be a server of a distributed system or a server that incorporates a blockchain.
According to embodiments of the present disclosure, the applet may run based on the host application 111. For example, an applet framework may be loaded in the host application 111, and then the corresponding applet data package is obtained, and loaded in the applet framework to run the corresponding applet. Wherein the applet data packets may be obtained from the data server 120, for example.
According to embodiments of the present disclosure, host application 111 may be a Native application having Native components (Native) 1111. The applet may communicate with the native component 1111 or may call a system API (Application Programming Interface, application program interface) through the native component 1111.
According to embodiments of the present disclosure, the applet may use a bilinear model, including a logic layer 1112 and a rendering layer 1113. Logic layer 1112 may include a JavaScript engine that may be used to execute JavaScript code, control the generation and processing of applet data, and the like. The rendering layer 1113 may include WebView components that may be used to handle rendering of pages, event interactions of users, and the like.
When the applet is started, the applet framework needs to be loaded first and then the corresponding applet data package is loaded. When the applet frame is not loaded, the applet will always be on the loaded page without the actual content, and the user will have to wait a long time to see the applet page containing the actual content. The long waiting process tends to cause the user to create a boring emotion.
According to an embodiment of the present disclosure, the terminal device 110 may acquire target page data corresponding to an applet before the applet framework is not loaded. The target page data may be rendered by the server 120, and the terminal device 110 may display the corresponding target page without rendering after obtaining the target page data. Based on this, the terminal device 110 may load a lightweight frame, and display the target page using the lightweight frame and the target page data. The target page can be used as a transfer page before entering the applet page, so that waiting time of a user for loading the page can be reduced, the fidgetiness of the user caused by waiting is relieved, and the user experience is improved.
According to the embodiment of the disclosure, the content of the target page can be set according to actual needs, and in addition, the target page can support page interaction and can respond to operations of a user in the target page.
In the technical scheme of the disclosure, the related processes of collecting, storing, using, processing, transmitting, providing, disclosing and the like of the data such as the small program data packet, the page data and the like all accord with the regulations of related laws and regulations, and the public order is not violated.
Fig. 2 schematically illustrates a flow chart of a method of launching an applet in accordance with an embodiment of the disclosure.
As shown in fig. 2, the method 200 includes operations S210 to S240. The method 200 may be performed, for example, by the terminal device shown above.
In operation S210, the applet framework is loaded in response to a start operation for the target applet.
Then, in operation S220, the lightweight frame is loaded in the loading process of the applet frame.
In operation S230, target page data corresponding to the target applet is acquired. The target page data are rendered by the server.
In operation S240, the target page is presented according to the lightweight frame and the target page data.
According to implementations of the present disclosure, the applet framework may include various related components for running the applet, such as an end container and a front end framework. Wherein the end container may include a logical layer component, a render layer component, etc., and the front end framework may include an API set and related components, etc.
According to embodiments of the present disclosure, loading the applet framework includes, for example, may include creating a logical layer container and a render layer container, and then loading the applet framework code with the logical layer container and the render layer container.
According to embodiments of the present disclosure, the lightweight framework may include, for example, components in the rendering layer that are relevant for creating page view containers. According to other embodiments of the present disclosure, the lightweight framework may also include routing APIs, requests, stores, etc. components in the applet framework, depending on the actual requirements. Compared with the small program framework, the lightweight framework does not contain a logic layer, and additionally contains more simplified APIs and components, so that the data volume is smaller, and the loading speed is higher.
The method of loading the lightweight frame shown above is further described with reference to fig. 3.
Fig. 3 schematically illustrates a flow chart of a method of loading a lightweight frame according to an embodiment of the disclosure.
As shown in fig. 3, the method 320 includes operations S321 to S322.
In operation S321, lightweight frame data is acquired.
Then, in operation S322, a web page view container is created using the lightweight frame data.
According to embodiments of the present disclosure, lightweight frame data may be obtained, wherein the lightweight frame data includes a page view container component. A web page view container is then created using the page view container component.
The target page data in this embodiment may include an HTML file of the target page, a CSS file of the target page, and the like, and may be used to generate presentation content of the target page. .
The target page may be a transfer page corresponding to the loaded page before the applet page is loaded. By displaying the transfer page to the user before the applet page is completely rendered and then switching to the applet page rendered by the applet frame, the loading process of the applet page can be smoother, the fidgetiness of the user caused by waiting is relieved, and the experience of the user is improved.
According to embodiments of the present disclosure, the lightweight framework is more compact than the applet framework, and thus the loading speed is faster. In the loading process of the applet framework, the target page can be generated faster by utilizing the lightweight framework, so that the applet performance can be improved, the waiting time of a user can be reduced, and better user experience can be brought to the user.
According to embodiments of the present disclosure, the target page data may be contained in an applet data package. In this embodiment, each applet may correspond to an applet package. The applet data package may include development code, page data, resources, etc. for the applet. According to embodiments of the present disclosure, the applet data packets may be stored locally at the terminal device or at a data server.
According to other embodiments of the present disclosure, target page data may also be stored to and hosted by a data server.
The method of acquiring target page data shown above is further described below with reference to fig. 4.
Fig. 4 schematically illustrates a flowchart of a method of acquiring target page data according to an embodiment of the present disclosure.
As shown in fig. 4, the method 430 includes operations S431 to S434.
In operation S431, it is determined whether an applet packet corresponding to the target applet is stored locally. In case that the applet data packet is stored locally, operation S432 is performed. If the applet data packet is not stored locally, operations S433 to S434 are performed.
In operation S432, target page data in the applet data packet is acquired.
In operation S433, the storage address of the target page data is determined according to the opening protocol of the target applet.
In operation S434, target page data is acquired according to the storage address.
According to embodiments of the present disclosure, the open protocol may be obtained, for example, from a start request of the target applet. The start request is generated from a start operation for the target applet.
According to the embodiment of the disclosure, when a start request of a target applet is received, an open protocol corresponding to the target applet may be acquired according to the start request. The opening protocol may be provided with a storage address of target page data corresponding to the target applet, and the target page data may be acquired from the data server according to the storage address.
According to the embodiment of the disclosure, after the target page data is acquired, the target page can be rendered in the webpage view container according to the target page data, and event binding is performed on the target page. Illustratively, in this embodiment, the target page data may be loaded using the webview.loadurl () method of the lightweight frame to render the target page.
Fig. 5 schematically illustrates a flowchart of a method of launching an applet, according to an embodiment of the disclosure.
As shown in FIG. 5, the method 500 includes operations S510-S590. The method 500 may be performed, for example, by the terminal device shown above.
In operation S510, the applet framework is loaded in response to a start operation for the target applet.
Then, in operation S520, it is determined whether the applet framework is loaded completely. In case that the applet frame loading is not completed, operation S530 is performed. In case the applet frame loading has been completed, operation S590 is performed.
In operation S530, a lightweight frame is loaded.
In operation S540, target page data corresponding to the target applet is acquired.
In operation S550, the target page is presented according to the lightweight frame and the target page data.
Operations S510 to S550 may refer to the above, and are not described herein.
In operation S560, the applet framework loading is waited for. When the applet framework is loaded, the applet data packet corresponding to the target applet is loaded by using the applet framework.
In operation S570, a content page is created from the applet data packet.
According to embodiments of the present disclosure, a content page may include, for example, a page with actual content.
In operation S580, the routing application interface of the lightweight frame is invoked to jump the target page to the content page.
According to embodiments of the present disclosure, the target page may be jumped to the content page, for example, by invoking a routing application interface of the lightweight framework. The light-weight framework can be switched to the applet framework, so that various functions of the applet are normally realized.
In operation S590, a subsequent applet page is rendered using the applet framework.
According to the disclosed embodiment, the terminal device can automatically call the routing application program interface of the lightweight framework after the loading of the applet framework is completed, and jump from the target page to the content page. According to other embodiments disclosed, in addition to automatically jumping to a content page, the jump may be triggered based on user operations. For example, in this embodiment, a jump event may be generated when a user triggers a jump, and then jump from the target page to the content page in response to receiving the jump event in the target page.
According to embodiments of the present disclosure, the lightweight framework is more compact than the applet framework, and thus the loading speed is faster. In the loading process of the applet framework, the target page can be generated faster by utilizing the lightweight framework, so that the applet performance can be improved, the waiting time of a user can be reduced, and better user experience can be brought to the user.
Fig. 6 schematically illustrates a block diagram of an apparatus for initiating a applet, according to an embodiment of the disclosure.
As shown in fig. 6, the apparatus 600 for launching an applet includes a first loading module 610, a second loading module 620, an obtaining module 630, and a presentation module 640.
A first loading module 610 for loading the applet framework in response to a launch operation for the target applet.
The second loading module 620 is configured to load the lightweight framework during the loading process of the applet framework.
And the obtaining module 630 is configured to obtain target page data corresponding to the target applet, where the target page data is rendered by the server.
And the display module 640 is used for displaying the target page according to the lightweight frame and the target page data. According to an embodiment of the present disclosure, the acquisition module includes a first acquisition sub-module, a determination sub-module, and a second acquisition sub-module. The first acquiring submodule is used for acquiring target page data in the small program data packet under the condition that the small program data packet is locally stored. And the determining submodule is used for determining the storage address of the target page data according to the opening protocol of the target applet under the condition that the applet data packet is not stored locally. And the second acquisition sub-module is used for acquiring the target page data according to the storage address.
According to an embodiment of the present disclosure, the second loading module may include a third acquisition sub-module and a first creation sub-module. The third obtaining submodule is used for obtaining lightweight frame data, wherein the lightweight frame data comprises a page view container component. A first creation sub-module for creating a web page view container using the lightweight frame data. .
According to an embodiment of the disclosure, the presentation module may include a rendering sub-module for rendering a target page in the web page view container according to the target page data and event binding for the target page.
According to an embodiment of the present disclosure, the first loading module may include a second creation sub-module and a code loading sub-module. The second creation sub-module is used for creating a logical layer container and a rendering layer container. And the code loading sub-module is used for loading the applet framework codes by utilizing the logical layer container and the rendering layer container.
According to an embodiment of the disclosure, the apparatus may further include a packet loading module and a third creating module. And the data packet loading module is used for loading the small program data packet corresponding to the target small program by using the small program framework under the condition that the small program framework is loaded. And the third creation module is used for creating a content page according to the applet data packet.
According to an embodiment of the disclosure, the apparatus may further include a calling module for calling a routing application program interface of the lightweight frame to jump the target page to the content page.
According to an embodiment of the present disclosure, the apparatus may further include a skip module to skip from the target page to the content page in response to receiving a skip event in the target page.
According to embodiments of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
Fig. 7 schematically illustrates a block diagram of an example electronic device 700 that may be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 7, the apparatus 700 includes a computing unit 701 that can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM) 702 or a computer program loaded from a storage unit 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the device 700 may also be stored. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other through a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
Various components in device 700 are connected to I/O interface 705, including: an input unit 706 such as a keyboard, a mouse, etc.; an output unit 707 such as various types of displays, speakers, and the like; a storage unit 708 such as a magnetic disk, an optical disk, or the like; and a communication unit 709 such as a network card, modem, wireless communication transceiver, etc. The communication unit 709 allows the device 700 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The computing unit 701 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of computing unit 701 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 701 performs the respective methods and processes described above, for example, a method of starting an applet. For example, in some embodiments, the method of launching an applet may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as the storage unit 708. In some embodiments, part or all of the computer program may be loaded and/or installed onto device 700 via ROM 702 and/or communication unit 709. When a computer program is loaded into RAM 703 and executed by computing unit 701, one or more steps of the method of launching an applet described above may be performed. Alternatively, in other embodiments, the computing unit 701 may be configured to perform the method of starting up the applet by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for carrying out methods of the present disclosure may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus such that the program code, when executed by the processor or controller, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as data server 120), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the internet.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps recited in the present disclosure may be performed in parallel or sequentially or in a different order, provided that the desired results of the technical solutions of the present disclosure are achieved, and are not limited herein.
The above detailed description should not be taken as limiting the scope of the present disclosure. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present disclosure are intended to be included within the scope of the present disclosure.

Claims (14)

1. A method of initiating an applet, comprising:
in response to a launch operation for a target applet, loading an applet framework comprising creating a logical layer container and a render layer container, and loading applet framework code using the logical layer container and the render layer container;
loading a lightweight framework in the loading process of the applet framework, wherein the lightweight framework does not contain a logic layer container relative to the applet framework;
acquiring target page data corresponding to the target applet, wherein the target page data is rendered by a server;
displaying a target page according to the lightweight frame and the target page data, wherein the target page is a transfer page corresponding to a loaded page before the data is not loaded with the applet page;
under the condition that the loading of the applet framework is completed, loading an applet data packet corresponding to the target applet by using the applet framework; creating a content page according to the applet data packet; and
and calling a routing application program interface of the lightweight frame to jump the target page to the content page, and rendering a subsequent applet page by using the applet frame.
2. The method of claim 1, wherein the obtaining target page data corresponding to the target applet comprises:
under the condition that the small program data packet is locally stored, acquiring target page data in the small program data packet;
in the case where the applet data packets are not stored locally,
determining a storage address of the target page data according to the opening protocol of the target applet; and
and acquiring the target page data according to the storage address.
3. The method of claim 1, wherein the loading a lightweight frame comprises:
acquiring lightweight frame data, wherein the lightweight frame data comprises a page view container component; and
and creating a webpage view container by using the lightweight frame data.
4. A method according to claim 3, wherein said presenting a target page from said lightweight frame and said target page data comprises:
and rendering the target page in the webpage view container according to the target page data, and binding the event aiming at the target page.
5. The method of claim 1, wherein the loadapplet framework comprises:
creating a logical layer container and a rendering layer container; and
and loading applet framework codes by utilizing the logical layer container and the rendering layer container.
6. The method of claim 1, further comprising:
and in response to receiving a jump event in the target page, jumping from the target page to the content page.
7. An apparatus for initiating an applet, comprising:
a first loading module for loading an applet framework in response to a start operation for a target applet, the loading applet framework comprising creating a logical layer container and a render layer container, and loading applet framework code using the logical layer container and the render layer container;
the second loading module is used for loading a lightweight frame in the loading process of the applet frame, and the lightweight frame does not contain a logic layer container relative to the applet frame;
the acquisition module is used for acquiring target page data corresponding to the target applet, wherein the target page data is rendered by a server;
the display module is used for displaying a target page according to the lightweight frame and the target page data, wherein the target page is a transfer page corresponding to a loaded page before the data is not loaded with the applet page;
the data packet loading module is used for loading the small program data packet corresponding to the target small program by utilizing the small program framework under the condition that the small program framework is loaded;
the creation module is used for creating a content page according to the applet data packet; and
and the calling module is used for calling the routing application program interface of the lightweight frame so as to jump the target page to the content page, and rendering a subsequent applet page by using the applet frame.
8. The apparatus of claim 7, wherein the acquisition module comprises:
the first acquisition sub-module is used for acquiring target page data in the small program data packet under the condition that the small program data packet is locally stored;
the determining submodule is used for determining the storage address of the target page data according to the opening protocol of the target applet under the condition that the applet data packet is not stored locally; and
and the second acquisition sub-module is used for acquiring the target page data according to the storage address.
9. The apparatus of claim 7, wherein the second loading module comprises:
a third obtaining submodule, configured to obtain lightweight frame data, where the lightweight frame data includes a page view container component; and
a first creation sub-module for creating a web page view container using the lightweight frame data.
10. The apparatus of claim 9, wherein the presentation module comprises:
and the rendering sub-module is used for rendering the target page in the webpage view container according to the target page data and binding the event aiming at the target page.
11. The apparatus of claim 7, wherein the first loading module comprises:
the second creation sub-module is used for creating a logical layer container and a rendering layer container; and
and the code loading sub-module is used for loading the applet framework codes by utilizing the logic layer container and the rendering layer container.
12. The apparatus of claim 7, further comprising:
and the jump module is used for jumping from the target page to the content page in response to receiving a jump event in the target page.
13. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the liquid crystal display device comprises a liquid crystal display device,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-6.
14. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of any one of claims 1-6.
CN202111336124.3A 2021-11-11 2021-11-11 Method, device, equipment and storage medium for starting applet Active CN114090118B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111336124.3A CN114090118B (en) 2021-11-11 2021-11-11 Method, device, equipment and storage medium for starting applet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111336124.3A CN114090118B (en) 2021-11-11 2021-11-11 Method, device, equipment and storage medium for starting applet

Publications (2)

Publication Number Publication Date
CN114090118A CN114090118A (en) 2022-02-25
CN114090118B true CN114090118B (en) 2023-09-15

Family

ID=80300137

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111336124.3A Active CN114090118B (en) 2021-11-11 2021-11-11 Method, device, equipment and storage medium for starting applet

Country Status (1)

Country Link
CN (1) CN114090118B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114691236B (en) * 2022-03-24 2024-04-19 中国银联股份有限公司 Method, device, equipment and medium for integrating native program and applet

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108984625A (en) * 2018-06-19 2018-12-11 平安科技(深圳)有限公司 Information filtering method, device, computer equipment and storage medium
CN111158799A (en) * 2019-12-31 2020-05-15 北京百度网讯科技有限公司 Page rendering method and device, electronic equipment and storage medium
CN111475259A (en) * 2020-04-02 2020-07-31 北京百度网讯科技有限公司 Applet loading method and device and electronic equipment
CN111538889A (en) * 2020-03-30 2020-08-14 中国平安人寿保险股份有限公司 Interface request method, device, equipment and computer readable storage medium
CN111767090A (en) * 2020-06-28 2020-10-13 百度在线网络技术(北京)有限公司 Method and device for starting small program, electronic equipment and storage medium
CN111859224A (en) * 2020-07-31 2020-10-30 平安健康保险股份有限公司 Server rendering method and device based on node server and computer equipment
CN112417336A (en) * 2020-11-24 2021-02-26 天津五八到家货运服务有限公司 Page display method and device, electronic equipment and storage medium
CN112416461A (en) * 2020-11-25 2021-02-26 百度在线网络技术(北京)有限公司 Video resource processing method and device, electronic equipment and computer readable medium
CN112596729A (en) * 2020-12-28 2021-04-02 深圳市欢太科技有限公司 Target application interface generation method and device, readable medium and electronic equipment
EP3813339A1 (en) * 2020-04-28 2021-04-28 Baidu Online Network Technology (Beijing) Co., Ltd. Acquisition method, apparatus, device and storage medium for applet data
CN112905280A (en) * 2021-02-07 2021-06-04 腾竞体育文化发展(上海)有限公司 Page display method, device, equipment and storage medium
WO2021218327A1 (en) * 2020-04-27 2021-11-04 腾讯科技(深圳)有限公司 Page processing method and related device

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108984625A (en) * 2018-06-19 2018-12-11 平安科技(深圳)有限公司 Information filtering method, device, computer equipment and storage medium
CN111158799A (en) * 2019-12-31 2020-05-15 北京百度网讯科技有限公司 Page rendering method and device, electronic equipment and storage medium
CN111538889A (en) * 2020-03-30 2020-08-14 中国平安人寿保险股份有限公司 Interface request method, device, equipment and computer readable storage medium
CN111475259A (en) * 2020-04-02 2020-07-31 北京百度网讯科技有限公司 Applet loading method and device and electronic equipment
WO2021218327A1 (en) * 2020-04-27 2021-11-04 腾讯科技(深圳)有限公司 Page processing method and related device
EP3813339A1 (en) * 2020-04-28 2021-04-28 Baidu Online Network Technology (Beijing) Co., Ltd. Acquisition method, apparatus, device and storage medium for applet data
CN111767090A (en) * 2020-06-28 2020-10-13 百度在线网络技术(北京)有限公司 Method and device for starting small program, electronic equipment and storage medium
CN111859224A (en) * 2020-07-31 2020-10-30 平安健康保险股份有限公司 Server rendering method and device based on node server and computer equipment
CN112417336A (en) * 2020-11-24 2021-02-26 天津五八到家货运服务有限公司 Page display method and device, electronic equipment and storage medium
CN112416461A (en) * 2020-11-25 2021-02-26 百度在线网络技术(北京)有限公司 Video resource processing method and device, electronic equipment and computer readable medium
CN112596729A (en) * 2020-12-28 2021-04-02 深圳市欢太科技有限公司 Target application interface generation method and device, readable medium and electronic equipment
CN112905280A (en) * 2021-02-07 2021-06-04 腾竞体育文化发展(上海)有限公司 Page display method, device, equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于React的电厂信息管理系统前端页面设计;祝广场;柯亚唯;;山东工业技术(第22期);全文 *

Also Published As

Publication number Publication date
CN114090118A (en) 2022-02-25

Similar Documents

Publication Publication Date Title
CN109165050B (en) Program running method and device, computing equipment and storage medium
CN112861057B (en) Page rendering method, device, equipment and storage medium based on applet
US10666758B2 (en) Browser resource pre-pulling method, terminal and storage medium
CN112540806B (en) Method and device for rendering small program page, electronic equipment and storage medium
JP7167222B2 (en) APPLET DATA ACQUISITION METHOD, APPARATUS, DEVICE, AND STORAGE MEDIUM
US10574759B2 (en) Message-based contextual dialog
CN114035865B (en) Method, device and equipment for starting small program and storage medium
CN113010827B (en) Page rendering method and device, electronic equipment and storage medium
CN115309470B (en) Method, device, equipment and storage medium for loading widget
CN114090118B (en) Method, device, equipment and storage medium for starting applet
US20230359483A1 (en) Method for applet page rendering, electronic device and storage medium
CN108345683B (en) Webpage display method, device, terminal and storage medium
CN113656198A (en) Copying and pasting method and device from client to cloud mobile phone
CN115934076B (en) Cross-platform client micro-service providing device and method and electronic equipment
CN113612643B (en) Network configuration method, device and equipment of cloud mobile phone and storage medium
CN113641439B (en) Text recognition and display method, device, electronic equipment and medium
CN114428646B (en) Data processing method and device, electronic equipment and storage medium
CN114924826B (en) Page fusion method, device and equipment based on different code platforms
CN114265535B (en) Floor page display method, device, equipment and medium for push message
CN113220282B (en) Development processing method, device and storage medium for applet
CN113407329B (en) Task execution method, device, equipment and storage medium
CN113315687B (en) Proxy network management method, device, storage medium and terminal
CN114237755A (en) Application running method and device, electronic equipment and storage medium
CN116010744A (en) Page data processing method and device, electronic equipment and readable storage medium
CN116028136A (en) File previewing method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant