CN111767090A - Method and device for starting small program, electronic equipment and storage medium - Google Patents

Method and device for starting small program, electronic equipment and storage medium Download PDF

Info

Publication number
CN111767090A
CN111767090A CN202010600743.8A CN202010600743A CN111767090A CN 111767090 A CN111767090 A CN 111767090A CN 202010600743 A CN202010600743 A CN 202010600743A CN 111767090 A CN111767090 A CN 111767090A
Authority
CN
China
Prior art keywords
applet
user interface
content
container
core
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.)
Pending
Application number
CN202010600743.8A
Other languages
Chinese (zh)
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.)
Baidu Online Network Technology Beijing Co Ltd
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 CN202010600743.8A priority Critical patent/CN111767090A/en
Publication of CN111767090A publication Critical patent/CN111767090A/en
Pending legal-status Critical Current

Links

Images

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • G06F8/313Logic programming, e.g. PROLOG programming language
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Abstract

The disclosure provides a method for starting an applet, and relates to the field of human-computer interaction, cloud platforms and cloud computing. The method comprises the following steps: creating a user interface container for the applet in response to a launch event for the applet; responding to the starting event of the small program, determining core loading content corresponding to the starting event, and loading the core loading content; integrating a user interface container of the applet and the core loading content to start an applet framework; wherein the step of creating a user interface container for an applet is performed in parallel with the step of determining and loading the core load content. The disclosure also provides a starting device of the small program, an electronic device and a computer readable medium.

Description

Method and device for starting small program, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of human-computer interaction, cloud platforms, and cloud computing, and in particular, to a method and an apparatus for starting an applet, an electronic device, and a computer-readable storage medium.
Background
With the rapid development of internet technology, various application programs have entered the daily lives of people, and applets have gained wide attention from various industries as an application that can be used without downloading and installing, so that more and more applets are loaded on more and more application programs to provide more convenient services for users.
However, in the related art, when loading respective applets, various applications are required to run, which requires preparing an applet framework environment in advance, and executing an applet opening task after preparing an applet package. Therefore, there is a large performance overhead, resulting in an undesirable user experience.
Disclosure of Invention
According to a first aspect of the present disclosure, there is provided a method for starting an applet, including: creating a user interface container for the applet in response to a launch event for the applet; responding to the starting event of the small program, determining core loading content corresponding to the starting event, and loading the core loading content; integrating a user interface container of the applet and the core loading content to start an applet framework; wherein the step of creating a user interface container for an applet is performed in parallel with the step of determining and loading the core load content.
According to a second aspect of the present disclosure, there is provided an applet starting apparatus including: a creation module for creating a user interface container for the applet in response to a call-up event for the applet; the loading module is used for responding to a starting event of an applet, determining core loading content corresponding to the starting event and loading the core loading content; the integration module is used for integrating the user interface container of the applet and the core loading content so as to start an applet framework; wherein the creating module creates an applet user interface container in parallel with the loading module determining and loading the core loading content.
According to a third aspect of the present disclosure, there is provided an electronic device comprising: a processor; and a memory storing a program comprising instructions which, when executed by the processor, cause the processor to perform the boot method provided by the first aspect above.
According to a fourth aspect of the present disclosure, there is provided a computer readable storage medium, the program comprising instructions which, when executed by a processor of an electronic device, cause the electronic device to perform the provision start method according to the first aspect.
The applet starting method, the applet starting device, the electronic equipment and the storage medium can improve the starting speed and the user experience of the applet.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate exemplary embodiments of the embodiments and, together with the description, serve to explain the exemplary implementations of the embodiments. The illustrated embodiments are for purposes of illustration only and do not limit the scope of the claims. Throughout the drawings, identical reference numbers designate similar, but not necessarily identical, elements:
FIG. 1 is a flow diagram of a method for initiating an applet, according to one embodiment of the present disclosure;
FIG. 2 is a flow chart of a method of initiating an applet according to another embodiment of the present disclosure;
FIG. 3 is a schematic diagram of an initiator device for an applet, according to one embodiment of the present disclosure;
fig. 4 is a block diagram showing an exemplary computing device to which the exemplary embodiments can be applied.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those 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.
A method, an apparatus, an electronic device, and a computer-readable storage medium for starting an applet, which are proposed according to an embodiment of the present disclosure, are described below with reference to fig. 1 to 4.
FIG. 1 is a flow diagram of a method for initiating an applet, according to one embodiment of the present disclosure.
It should be noted that the method for starting an applet according to the embodiment of the present disclosure may be applied to a device for starting an applet according to the embodiment of the present disclosure. The starting device can be configured on the electronic equipment. As an example, the applet may be hosted on a host application, which may be installed on the electronic device. The electronic device may be, for example, a mobile terminal, and the mobile terminal may be various hardware devices with an operating system, such as a mobile phone, a tablet computer, and a personal digital assistant.
The applet referred to in the disclosure refers to a cloud application that is developed and completed based on a specific programming language and can be used without downloading and installation. One of the characteristics of the small program is that the small program is convenient to use and does not need to be manually installed in an operating system of the terminal.
Therefore, the method, the device, the electronic equipment and the readable storage medium for starting the applet relate to the technical field of computers, and more particularly relate to the field of human-computer interaction.
As shown in fig. 1, the method for starting the applet may include:
step 101, responding to a starting event of an applet, and creating a user interface container of the applet;
step 102, responding to the starting event of the small program, determining core loading content corresponding to the starting event, and loading the core loading content;
step 103, integrating the user interface container of the applet and the core loading content to start the applet framework.
Wherein, step 101: a step of creating a user interface container for the applet, and a step 102: the steps of determining and loading the core load content are performed in parallel.
In the embodiment of the disclosure, the applet invoking event may be a request generated by a user by triggering a corresponding control or a request generated by triggering the applet to open in a voice manner, for example, the applet invoking event is generated when the user clicks an applet icon, where the applet icon may be an appkey including an applet identifier or opening path information.
In an embodiment of the present disclosure, in response to the invoking event of the applet, determining core loading content corresponding to the invoking event, and loading the core loading content; illustratively, the core load content belongs to an execution package of applets.
It should be noted that the obtaining location of the execution file package where the core loading content of the applet is located may be obtained from a local cache, and may also be obtained from a server of a service corresponding to the applet.
Illustratively, in step 102, the core loading content corresponding to the invoking event is determined, including querying whether the local terminal has the corresponding applet and the core loading content of the open path. And if the core loading content corresponding to the applet identification appkey or the opening path information exists in the local terminal, loading the core loading content. If the core loading content corresponding to the applet identifier appkey or the open path information does not exist in the local terminal, the core loading content needs to be acquired from a server side of the service corresponding to the applet.
For example, in step 103, in order to reduce resource consumption, improve the efficiency of acquiring the execution file package where the core loading content is located, and further improve the efficiency of starting the applet, it may be determined whether the core loading content execution file package of the version corresponding to the applet exists in the local cache based on the applet identifier and the applet version number.
Illustratively, in step 104, the result of compiling and running the applet core load content is pulled up to the applet user interface container and integrated with the applet user interface container, so as to start the applet framework structure.
Since the step 101 of creating the user interface container of the applet and the step 102 of determining and loading the core loading content are performed in parallel, the core loading content can be determined and loaded in parallel while the user interface container of the applet is created, so that the start time is saved, and the start speed and the user experience of the applet can be improved.
In an embodiment of the present disclosure, the user interface container of the applet is a base container.
Illustratively, the base container is an applet page user interface container. The basic container may be exemplarily selected to be a "whiteboard", and by "whiteboard", it is meant that the basic container includes only a frame, does not include page content, and does not include any component, for example, Bar or Tab in the basic component.
For example, the base container is a white screen that contains only borders.
In an embodiment of the present disclosure, the core loading content includes a business logic code, and the business logic code can define a shortcut menu required by the applet.
Illustratively, the core load content includes business logic code, and the business logic code may be selected as app.js, wherein the app.js may contain some global variables therein, so as to ensure that the app.js is easily accessed and modified.
The business logic code can define a shortcut menu required by the small program through compiling, so that the small program can be conveniently used.
In an embodiment of the present disclosure, the kernel loading content further includes a local user interface component, and the local user interface component is a component required for the applet initialization.
Illustratively, the process of loading the local user interface component includes creating the local user interface component, laying out the local user interface component, and/or drawing the local user interface component.
In an embodiment of the present disclosure, the local user interface component is Bar at the top of the applet and/or Tab at the bottom of the applet.
Illustratively, Bar and Tab are components configured by the applet in the initialization process, and the number of Bar and Tab and their positions on the applet can be selected according to actual requirements.
Illustratively, the layout and drawing local user component may also select the layout and shape of Bar and Tab.
In an embodiment of the present disclosure, the integrating the user interface container of the applet and the core loading content to launch an applet framework includes: pull the core load content to the user interface container; wherein the local user interface component is directly multiplexed to the user interface container.
By reusing the already created local user interface components directly into the applet user interface container, time is saved for local user interface component creation, layout and rendering.
Illustratively, loading the core load content may be done in a background service, that is, the loading core load content may be invisible to the user, as opposed to creating the applet user interface. In the background service invisible to the user, the creation, layout and drawing of local user components are all executed, and the local user components are directly multiplexed into the applet user interface after the execution is finished.
In the embodiment of the present disclosure, for integrating the ui container of the applet and the core loading content, after obtaining the core loading content of the applet, the core loading content may be parsed, compiled and executed, and the ui container of the applet and a result of the compiling and executing of the core loading content may be integrated, so as to start a framework of the applet.
Illustratively, the process of starting the framework structure of the applet further comprises the operation of pulling up the compiled and operated result of the core loading content of the applet to a user interface container of the applet, and integrating the compiled and operated combination of the core loading content of the applet with the user interface container of the applet so as to start the framework structure of the applet.
In an embodiment of the present disclosure, the integrating the applet user interface container and the core loading content to launch an applet framework further includes: adding the rendering layer container of the applet to a view tree of a user interface container.
Illustratively, the user interface container of the applet further comprises a view tree, and the subsequent drawing content of the applet can be ensured to be visible to the user by adding the rendering layer container of the applet to the view tree of the user interface container.
In an embodiment of the present disclosure, the method for starting an applet may further include: before creating a user interface container of an applet, an applet background service is started, which listens for a start event of the applet. The listening step for the applet background service will be explained in connection with fig. 2.
Fig. 2 is a flow chart 200 of a method of initiating an applet according to another embodiment of the disclosure. Illustratively, as shown in fig. 2, the start-up method of an applet according to this embodiment may include: step 201, starting an applet background service in advance, wherein the background service monitors a calling event of the applet; step 202, starting an applet framework; step 203, calling back a life cycle function; and, step 204, triggering applet content rendering.
Wherein the step 202 of launching the applet framework may exemplarily comprise the steps 101 to 103 described above with reference to fig. 1. Therefore, details of step 202 will not be described herein.
Since step 101 and step 102 described above with reference to fig. 1 may be performed in parallel, step 201 may precede step 101 and/or step 102, for example. By starting the applet background service in advance in step 201, a calling event of the applet is monitored, a user interface container of the applet can be created accordingly in response to the monitored calling event of the applet, and the core loading content corresponding to the calling event can be determined and loaded in response to the calling event of the applet.
Illustratively, the applet background service refers to a service for loading an applet in the background and processing an applet runtime framework in advance after a host application is started, and the path of the applet background service can reuse the existing applet runtime preloading, so that a general environment for running all applets is prepared in advance before the applet is started. The applet background service may be, for example, an applet no user interface service that is not visible to the user. Illustratively, the applet's background services may be executed by the host application.
The applet background service is not specifically set for a certain type of applet, the multiple types of applets can provide the same path, a general environment for running all the applets is prepared before the certain type of the applets are started, the general environment comprises services which are loaded in the background in advance and are used for processing framework loading during the running of the applets, for example, the applet A is already running, at the moment, if the applet B is required to be started, the general environment during the running of the applet A can be directly reused, and the services which are loaded in the background in advance and are used for processing the framework loading during the running of the applet B are obtained.
As described above, the applet background service may listen for the applet's call up events. Upon monitoring an applet launch event, such as a request generated by a user triggering a corresponding control or a request generated by a voice-triggered applet open, the applet framework may be launched in step 202.
In an embodiment of the present application, further comprising: and calling back a life cycle function and triggering the content rendering of the small program.
Illustratively, the callback lifecycle function in step 203 can be a callback developer lifecycle function. By calling back the developer lifecycle function, subsequent steps can continue on the timeline, such as triggering applet content rendering.
In an embodiment of the present disclosure, the step 204 of triggering applet content rendering may include: acquiring page data; and rendering the content of the page data to launch the applet.
Illustratively, after the page data is obtained, the contents of the page data are rendered into the applet frame that has been launched in step 202, at which point the applet launch is complete.
Corresponding to the method for starting the applet provided in the above embodiment, another embodiment of the present disclosure further provides a device for starting the applet, as shown in fig. 3. Since the starting device of the applet provided in the embodiment of the present disclosure corresponds to the starting method of the applet provided in the above embodiment, the foregoing implementation of the starting method of the applet is also applicable to the starting device of the applet provided in this embodiment. For the sake of brevity, it will not be described in detail herein. Fig. 3 is a schematic structural diagram of an applet initiating device according to one embodiment of the present disclosure.
As shown in fig. 3, the applet initiating means 300 may comprise: a creation module 310, a loading module 320, and an integration module 330. Specifically, the method comprises the following steps:
a creation module 310 for creating a user interface container for an applet in response to a call-up event for the applet;
the loading module 320 is configured to, in response to a start event of an applet, determine core loading content corresponding to the start event, and load the core loading content;
an integration module 330, configured to integrate the applet user interface container and the core loading content to start an applet framework;
wherein the creating module creates an applet user interface container in parallel with the loading module determining and loading the core loading content.
In an embodiment of the present disclosure, the core loading content includes a business logic code, and the business logic code can define a shortcut menu required by the applet.
In an embodiment of the present disclosure, the kernel loading content further includes a local user interface component, and the local user interface component is a component required for the applet initialization.
In an embodiment of the present disclosure, the local user interface component is Bar at the top of the applet and/or Tab at the bottom of the applet.
In an embodiment of the present disclosure, the integration module is specifically configured to: pull the core load content to the user interface container; wherein the local user interface component is directly multiplexed to the user interface container.
In an embodiment of the present disclosure, the integration module is further configured to: adding the render layer container of the applet to the view tree of the user interface container.
According to an embodiment of the present disclosure, there is also provided an electronic apparatus including: a processor; and a memory storing a program comprising instructions which, when executed by the processor, cause the processor to perform a method of starting according to the applet described above.
There is also provided, in accordance with an embodiment of the present disclosure, a computer-readable storage medium storing a program, the program including instructions that, when executed by a processor of an electronic device, cause the electronic device to perform a startup method according to the applet described above.
Fig. 4 is a schematic block diagram of an electronic device that can be used to implement a startup method of an applet, according to an embodiment of the 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 phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 4, the electronic device 400 includes: one or more processors 401, memory 402, and interfaces for connecting the various components, including high-speed interfaces and low-speed interfaces. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions for execution within the electronic device, including instructions stored in or on the memory to display graphical information of a GUI on an external input/output apparatus (such as a display device coupled to the interface). In other embodiments, multiple processors and/or multiple buses may be used, along with multiple memories and multiple memories, as desired. Also, multiple electronic devices may be connected, with each device providing portions of the necessary operations (e.g., as a server array, a group of blade servers, or a multi-processor system). In fig. 4, one processor 401 is taken as an example.
Memory 402 is a non-transitory computer readable storage medium provided by the present disclosure. Wherein the memory stores instructions executable by at least one processor to cause the at least one processor to perform the method for initiating an applet provided by the present disclosure. The non-transitory computer-readable storage medium of the present disclosure stores computer instructions for causing a computer to execute a startup method of a applet provided by the present disclosure.
Memory 402, as a non-transitory computer-readable storage medium, may be used to store non-transitory software programs, non-transitory computer-executable programs, and modules, such as program instructions/modules (e.g., creation module 310, loading module 320, integration module 330 shown in fig. 3) corresponding to the method for launching a applet in embodiments of the present disclosure. The processor 401 executes various functional applications of the server and data processing by running non-transitory software programs, instructions, and modules stored in the memory 402, that is, implementing the start-up method of the applet in the above-described method embodiment.
The memory 402 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the electronic device to implement the startup method of the applet, and the like. Further, the memory 402 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 402 may optionally include memory located remotely from the processor 401, which may be connected via a network to an electronic device to implement the applet launching method. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The electronic device 400 to implement the start-up method of the applet may further include: an input device 403 and an output device 404. The processor 401, the memory 402, the input device 403 and the output device 404 may be connected by a bus or other means, and fig. 4 illustrates an example of a connection by a bus.
The input device 403 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic apparatus to implement the startup method of the applet, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, a pointing stick, one or more mouse buttons, a track ball, a joystick, etc. The output devices 404 may include a display device, auxiliary lighting devices (e.g., LEDs), and haptic feedback devices (e.g., vibrating motors), among others. The display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display, and a plasma display. In some implementations, the display device can be a touch screen.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASICs (application specific integrated circuits), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
These computer programs (also known as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented using high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, Programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
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 a pointing device (e.g., a mouse or a 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 can 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, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), 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 back-end, 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 clients and servers. A client and server are generally 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 understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present application may be executed in parallel, sequentially, or in different orders, and are not limited herein as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the scope of protection of the present disclosure.

Claims (19)

1. A method of starting an applet, comprising:
creating a user interface container for the applet in response to a launch event for the applet;
responding to the starting event of the small program, determining core loading content corresponding to the starting event, and loading the core loading content;
integrating a user interface container of the applet and the core loading content to start an applet framework;
wherein the step of creating a user interface container for an applet is performed in parallel with the step of determining and loading the core load content.
2. A method of launching as in claim 1, wherein the user interface container of the applet is a base container.
3. The startup method according to claim 1, wherein said core loading content comprises business logic code capable of defining a shortcut menu required by said applet.
4. A startup method according to claim 3, wherein said core load further comprises local user interface components, said local user interface components being components required for initialization of said applet.
5. A method of launching as in claim 4, wherein the local user interface component is Bar at the top of the applet and/or Tab at the bottom of the applet.
6. A method of launching as recited in claim 4 or 5, wherein the integrating the applet's user interface container and the core load content to launch an applet framework comprises:
pull the core load content to the user interface container;
wherein the local user interface component is directly multiplexed to the user interface container.
7. The method of launching of claim 6, wherein said integrating the applet user interface container and the core load content to launch an applet framework further comprises:
adding the render layer container of the applet to the view tree of the user interface container.
8. The startup method of claim 7, further comprising:
before creating a user interface container of an applet, an applet background service is started, which listens for a start event of the applet.
9. A method of launching as described in claim 8, wherein the applet background service is an applet no user interface service that is not visible to the user.
10. The startup method according to any one of claims 1 to 9, further comprising:
calling back a life cycle function; and
triggering the applet content rendering.
11. The startup method of claim 10, wherein said triggering said applet content rendering comprises:
acquiring page data;
rendering content of the page data to launch the applet.
12. An applet starting apparatus comprising:
a creation module for creating a user interface container for the applet in response to a call-up event for the applet;
the loading module is used for responding to a starting event of an applet, determining core loading content corresponding to the starting event and loading the core loading content;
the integration module is used for integrating the user interface container of the applet and the core loading content so as to start an applet framework;
wherein the creating module creates an applet user interface container in parallel with the loading module determining and loading the core loading content.
13. The apparatus of claim 12, wherein the core load content comprises business logic code capable of defining a shortcut menu required by the applet.
14. The apparatus of claim 13, wherein the kernel load further comprises a local user interface component that is required for the applet initialization.
15. The apparatus of claim 14, wherein the local user interface component is Bar at the top of the applet and/or Tab at the bottom of the applet.
16. The apparatus of claim 14 or 15, wherein the integration module is specifically configured to:
pull the core load content to the user interface container;
wherein the local user interface component is directly multiplexed to the user interface container.
17. The apparatus of claim 16, wherein the integration module is further to:
adding the render layer container of the applet to the view tree of the user interface container.
18. An electronic device, comprising:
a processor; and
memory storing a program comprising instructions which, when executed by the processor, cause the processor to perform the method of initiating an applet according to any one of claims 1-11.
19. A computer readable storage medium storing a program, the program comprising instructions that, when executed by a processor of an electronic device, cause the electronic device to perform the method of initiating an applet according to any one of claims 1-11.
CN202010600743.8A 2020-06-28 2020-06-28 Method and device for starting small program, electronic equipment and storage medium Pending CN111767090A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010600743.8A CN111767090A (en) 2020-06-28 2020-06-28 Method and device for starting small program, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010600743.8A CN111767090A (en) 2020-06-28 2020-06-28 Method and device for starting small program, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111767090A true CN111767090A (en) 2020-10-13

Family

ID=72722617

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010600743.8A Pending CN111767090A (en) 2020-06-28 2020-06-28 Method and device for starting small program, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111767090A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112416461A (en) * 2020-11-25 2021-02-26 百度在线网络技术(北京)有限公司 Video resource processing method and device, electronic equipment and computer readable medium
CN112506581A (en) * 2020-12-17 2021-03-16 北京百度网讯科技有限公司 Method and device for rendering small program, electronic equipment and readable storage medium
CN112559086A (en) * 2020-12-25 2021-03-26 北京百度网讯科技有限公司 Applet page rendering method and device, electronic equipment and readable storage medium
CN112579096A (en) * 2020-12-18 2021-03-30 北京百度网讯科技有限公司 Method, device, equipment and medium for compiling and loading small program starting file
CN112748962A (en) * 2021-01-22 2021-05-04 北京五八信息技术有限公司 Application loading method and device, electronic equipment and computer readable medium
CN114090118A (en) * 2021-11-11 2022-02-25 北京百度网讯科技有限公司 Method, device and equipment for starting small program and storage medium
CN114398094A (en) * 2021-12-21 2022-04-26 中国银联股份有限公司 Applet starting method, device, equipment and computer readable storage medium
WO2022134425A1 (en) * 2020-12-23 2022-06-30 北京百度网讯科技有限公司 Applet running method and apparatus, electronic device, and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103345405A (en) * 2013-06-09 2013-10-09 贝壳网际(北京)安全技术有限公司 Application program starting method and device and client
CN106598640A (en) * 2016-11-01 2017-04-26 努比亚技术有限公司 Method and device for starting application program
CN107577509A (en) * 2017-08-28 2018-01-12 深圳市金立通信设备有限公司 A kind of method, terminal and computer-readable recording medium for loading application interface
CN108718333A (en) * 2018-05-09 2018-10-30 北京顺丰同城科技有限公司 Synchronous method, device and computer readable storage medium
CN111158799A (en) * 2019-12-31 2020-05-15 北京百度网讯科技有限公司 Page rendering method and device, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103345405A (en) * 2013-06-09 2013-10-09 贝壳网际(北京)安全技术有限公司 Application program starting method and device and client
CN106598640A (en) * 2016-11-01 2017-04-26 努比亚技术有限公司 Method and device for starting application program
CN107577509A (en) * 2017-08-28 2018-01-12 深圳市金立通信设备有限公司 A kind of method, terminal and computer-readable recording medium for loading application interface
CN108718333A (en) * 2018-05-09 2018-10-30 北京顺丰同城科技有限公司 Synchronous method, device and computer readable storage medium
CN111158799A (en) * 2019-12-31 2020-05-15 北京百度网讯科技有限公司 Page rendering method and device, electronic equipment and storage medium

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112416461B (en) * 2020-11-25 2024-04-12 百度在线网络技术(北京)有限公司 Video resource processing method, device, electronic equipment and computer readable medium
CN112416461A (en) * 2020-11-25 2021-02-26 百度在线网络技术(北京)有限公司 Video resource processing method and device, electronic equipment and computer readable medium
CN112506581A (en) * 2020-12-17 2021-03-16 北京百度网讯科技有限公司 Method and device for rendering small program, electronic equipment and readable storage medium
CN112506581B (en) * 2020-12-17 2024-03-22 北京百度网讯科技有限公司 Method, apparatus, electronic device and readable storage medium for rendering applet
CN112579096A (en) * 2020-12-18 2021-03-30 北京百度网讯科技有限公司 Method, device, equipment and medium for compiling and loading small program starting file
CN112579096B (en) * 2020-12-18 2024-03-19 北京百度网讯科技有限公司 Method, device, equipment and medium for compiling and loading applet startup file
WO2022134425A1 (en) * 2020-12-23 2022-06-30 北京百度网讯科技有限公司 Applet running method and apparatus, electronic device, and medium
CN112559086A (en) * 2020-12-25 2021-03-26 北京百度网讯科技有限公司 Applet page rendering method and device, electronic equipment and readable storage medium
CN112559086B (en) * 2020-12-25 2023-07-25 北京百度网讯科技有限公司 Applet page rendering method and device, electronic equipment and readable storage medium
CN112748962A (en) * 2021-01-22 2021-05-04 北京五八信息技术有限公司 Application loading method and device, electronic equipment and computer readable medium
CN112748962B (en) * 2021-01-22 2023-10-20 北京五八信息技术有限公司 Application loading method, device, electronic equipment and computer readable medium
CN114090118A (en) * 2021-11-11 2022-02-25 北京百度网讯科技有限公司 Method, device and equipment for starting small program and storage medium
CN114090118B (en) * 2021-11-11 2023-09-15 北京百度网讯科技有限公司 Method, device, equipment and storage medium for starting applet
CN114398094A (en) * 2021-12-21 2022-04-26 中国银联股份有限公司 Applet starting method, device, equipment and computer readable storage medium
CN114398094B (en) * 2021-12-21 2023-08-18 中国银联股份有限公司 Applet starting method, device, equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN111767090A (en) Method and device for starting small program, electronic equipment and storage medium
US11269696B2 (en) Application processing method and apparatus
US20210208951A1 (en) Method and apparatus for sharing gpu, electronic device and readable storage medium
US9417793B2 (en) Global keyboard shortcuts management for web applications
CN111400000B (en) Network request processing method, device, equipment and storage medium
CN111586128B (en) Method, device, equipment and storage medium for acquiring applet data
CN106055368B (en) application updating method and device
CN109308241B (en) Method and device for monitoring starting process of application program, terminal equipment and storage medium
CN110018765B (en) Page display method, device, terminal and storage medium
CN112187581B (en) Service information processing method, device, equipment and computer storage medium
US20210191780A1 (en) Method and apparatus for processing development machine operation task, device and storage medium
US11294651B2 (en) Code execution method, device, and rendering apparatus
CN112506854A (en) Method, device, equipment and medium for storing page template file and generating page
CN114035865B (en) Method, device and equipment for starting small program and storage medium
CN111913707B (en) Multiplexing method and device for running process
US11379201B2 (en) Wrapping method, registration method, device, and rendering apparatus
JP7090774B2 (en) How to start application programs, devices, devices, and storage media
CN110908675B (en) Method and device for acquiring running environment and electronic equipment
WO2023169193A1 (en) Method and device for generating smart contract
CN112130888A (en) Method, device and equipment for updating application program and computer storage medium
CN111966877A (en) Front-end service method, device, equipment and storage medium
JP7147123B2 (en) Source channel determination method, device, equipment, program and computer storage medium
CN111506499B (en) Method and device for detecting availability of parameters in applet and electronic equipment
CN110851187B (en) Video memory processing method, device, equipment and medium
CN111026491B (en) Interface display method, device, electronic equipment, server 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