CN109857486B - Method, device, equipment and medium for processing program page data - Google Patents

Method, device, equipment and medium for processing program page data Download PDF

Info

Publication number
CN109857486B
CN109857486B CN201910107637.3A CN201910107637A CN109857486B CN 109857486 B CN109857486 B CN 109857486B CN 201910107637 A CN201910107637 A CN 201910107637A CN 109857486 B CN109857486 B CN 109857486B
Authority
CN
China
Prior art keywords
page
data
page data
program
data storage
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
CN201910107637.3A
Other languages
Chinese (zh)
Other versions
CN109857486A (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 ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network 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 ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN201910107637.3A priority Critical patent/CN109857486B/en
Publication of CN109857486A publication Critical patent/CN109857486A/en
Application granted granted Critical
Publication of CN109857486B publication Critical patent/CN109857486B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the disclosure discloses a method, a device, equipment and a medium for processing program page data. The method comprises the steps that when the small program runs in an environment program, if a page data remote acquisition requirement is generated, page data are acquired from a remote place, the page data are stored into at least two corresponding data storage spaces according to the type of the page data, the page data required by the current page are extracted from each data storage space, and the page data are loaded into the current page for rendering. Through the technical scheme of the embodiment of the disclosure, when the small program obtains the page data, the same page data required by a plurality of pages can be obtained remotely at one time, so that the situation that different pages of the small program need to be obtained remotely for many times when the same page data is displayed can be avoided, the uniform management and the sharing of the same page data of different pages of the small program are realized, the data amount required to be processed when the page of the small program is displayed is reduced, and the resource occupation is reduced.

Description

Method, device, equipment and medium for processing program page data
Technical Field
The present disclosure relates to computer software technologies, and in particular, to a method, an apparatus, a device, and a medium for processing program page data.
Background
With the popularization of intelligent terminals, application software (APP) with various functions is gradually increased, and the functions of the APP are also in continuous upgrade and update. The APP client typically requires the user to download software to the terminal, install it, and then run it. In order to adapt to different functional requirements, applets are also currently emerging. The small program has the characteristic of realizing a certain service function, but the small program does not need a user to download independent software to the local, install and reuse. The applet is usually implemented by using some application software in some APP client or terminal as an operating platform, and the application software supporting the applet to operate is recorded as an environment program. For example, the applet of the WeChat is realized by taking a WeChat client as an operation platform, and the WeChat client is an environment program of the applet of the WeChat.
Developers of applets complete business functions by developing each page that the applet needs to display, and generally applets include a plurality of pages that display different content. When a user runs an applet at a client serving as an environment program, the user needs to respectively pull data of each page remotely and then render and display page contents. When the number of pages is large and the content is complex, the data volume required to be remotely pulled is large, and the resource consumption is high.
Disclosure of Invention
In view of this, the embodiments of the present disclosure provide a method, an apparatus, a device, and a medium for processing program page data, so as to reduce the amount of data to be processed when an applet page is displayed and reduce resource occupation.
In a first aspect, an embodiment of the present disclosure provides a method for processing program page data, where the method includes:
when the small program runs in the environment program, if a page data remote acquisition requirement is generated, acquiring the page data from the remote;
storing the page data into at least two corresponding data storage spaces according to the type of the page data;
and extracting page data required by the current page from each data storage space, and loading the page data into the current page for rendering.
In a second aspect, an embodiment of the present disclosure further provides a device for processing program page data, including:
the page data acquisition module is used for acquiring the page data from a remote place if a remote page data acquisition requirement is generated when the small program runs in the environment program;
the page data storage module is used for storing the page data into at least two corresponding data storage spaces according to the type of the page data;
and the page data loading module is used for extracting the page data required by the current page from each data storage space and loading the page data into the current page for rendering.
In a third aspect, an embodiment of the present disclosure further provides a terminal device, including:
one or more processors;
a memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the method for processing the program page data according to any aspect of the first embodiment of the present disclosure.
In a fourth aspect, the disclosed embodiment further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the processing method of the program page data according to any of the first aspect of the disclosed embodiment.
According to the technical scheme provided by the embodiment of the disclosure, when the applet obtains the page data from the remote, the page data is stored into the at least two corresponding data storage spaces according to the type of the page data, so that when different pages of the applet obtain the same page data, the same page data required by a plurality of pages can be obtained from the at least two corresponding data storage spaces, therefore, when the applet obtains the page data, the same page data required by the plurality of pages can be obtained from the remote at one time, thereby avoiding the situation that different pages of the applet need to be obtained from the remote for a plurality of times when the same page data are displayed, realizing the unified management and sharing of the same page data of different pages of the applet, reducing the data amount required to be processed when the applet is displayed, and reducing the resource occupation.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, a brief description will be given below to the drawings required for the embodiments or the technical solutions in the prior art, and it is obvious that the drawings in the following description are some embodiments of the present disclosure, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a processing method for program page data according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of a page loading process in a processing method of program page data according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of a processing method for program page data according to a second embodiment of the disclosure;
fig. 4 is a schematic flowchart of a processing method for program page data according to a third embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a processing apparatus for processing program page data according to a fourth embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a processing apparatus for processing program page data according to a fifth embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a terminal device according to a sixth embodiment of the present disclosure.
Detailed Description
To make the objects, technical solutions and advantages of the present disclosure clearer, the technical solutions of the present disclosure will be clearly and completely described below through embodiments with reference to the accompanying drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are some, but not all embodiments of the present disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
In the following embodiments, optional features and examples are provided in each embodiment, and various features described in the embodiments may be combined to form a plurality of alternatives, and each numbered embodiment should not be regarded as only one technical solution.
The embodiment of the disclosure provides a processing method and device for program page data, a terminal device and a storage medium, which can reduce the data amount required to be processed when a user uses an environment program to load and run an applet page, and reduce resource occupation.
Example one
Fig. 1 is a schematic flowchart of a processing method for program page data according to an embodiment of the present disclosure, where the method disclosed in the embodiment of the present disclosure is mainly applied to a process in which a user loads and runs an applet page in an environment program by using an application program on a terminal device as the environment program. In particular, it may be implemented by means of processing of program page data. As shown in fig. 1, the method specifically includes the following steps:
and S110, when the small program runs in the environment program, if a page data remote acquisition requirement is generated, acquiring the page data from the remote.
Specifically, an applet is a program that can implement a certain business function without requiring a user to download separate software to a local site, install it, and reuse it. Generally, an applet can serve as an operation platform through an APP, and the APP serving as the applet operation platform is an environment program of the applet. Therefore, the environment program is generally an APP, which serves as a running platform for the applet.
When the applet is operated in the environment program, the applet generally comprises a plurality of pages, and when the applet is operated, the page of the applet needs to be displayed, so that the page of the applet needs to load data and display data content after data rendering. At this time, a page data remote acquisition request is generated for acquiring data required for page display. When acquiring page data, the page data is generally acquired from a remote location, for example, the remote location may be a server.
In general, the generated page data remote acquisition requirements may include at least one of:
when the small program starts to run in the environment program, the page data remote acquisition requirement is determined to be generated. When the environment program starts to run, the small program enters a default page of the small program, at the moment, the default page of the small program needs page data to be displayed, and at the moment, the requirement for remotely acquiring the page data is determined to be generated. Generally, when the applet runs in the starting of the environment program, the default page of the applet is the home page of the applet, so that the current page of the applet is the home page of the applet, and the remote acquisition requirement of the page data generated by the home page is determined.
When the situation that a page refreshing instruction is generated by user operation is monitored, the page data remote acquisition requirement is determined to be generated. When it is monitored that a page refreshing instruction is generated when a user browses a page, the page generates a page data remote acquisition requirement, and the acquired page data refreshes the page display content. Generally, a user may generate a page refresh indication by pulling down a page or touching a refresh button. After the remote acquisition requirement of the page data is generated, the remotely acquired page data can cover the original page data of the current page, so that the content displayed by the page is refreshed.
When the incremental loading indication of the page data generated by user operation is monitored, the remote acquisition requirement of the page data is determined to be generated. When the situation that a user browses a page to generate a page data increment loading instruction is monitored, the page generates a page data remote acquisition demand, and page display content is added to the original display content of the page for display. In general, a user may generate a page data incremental loading indication by a gesture such as pulling up a page. After the remote acquisition requirement of the page data is generated, the remotely acquired page data can be increased on the basis of the original page data of the page, so that the content displayed by the page is increased.
When the page preloading requirement or the page display indication is monitored, the page data remote acquisition requirement is determined to be generated. Similarly, when the page preloading requirement or the page display indication is monitored, the page generates a page data remote acquisition requirement, and the acquired page data is a page corresponding to the page preloading requirement or the page display indication. In general, after a user switches different pages of an applet, a switched current page is determined, and remotely acquired page data are page data required by the current page and used for displaying the current page.
It should be noted that, when the applet runs in the environment program, the above-mentioned several remote acquiring requirements for generating page data are only an example, and not a limitation. The applet may also generate the page data remote acquisition requirement in other ways when running in the environment program.
And S120, storing the page data into at least two corresponding data storage spaces according to the type of the page data.
The page data may be formed into a plurality of types of page data according to a plurality of division manners. Illustratively, the page data may be classified according to the data information type, and may be classified into, for example, "user personal data", "user behavior data", "page control data", and the like.
In particular, the data storage space is used for storing remotely acquired storage data. The data storage space has a corresponding relationship with the types of the page data, and generally, each type of page data is stored in at least one data storage space separately from other types of page data. When the page data is obtained, the type of the page data can be carried in the page data, and the page data is stored into the corresponding data storage space according to the type of the page data.
The data storage spaces may be memory cells, and each data storage space may store a different type of page data. The data storage space has a corresponding relation with the page of the applet according to the stored page data type. One page can be interacted with a plurality of data storage spaces according to the type of page data required by the page, and the data storage spaces for interaction established by different pages are different. When a plurality of pages all need page data of the same page data type, the plurality of pages all comprise interactive data storage spaces for storing the same page data type, and the interactive data storage spaces for storing the same page data type of each page are different. Therefore, the data storage space storing the same page data type includes a plurality of data storage spaces. When the page data is obtained, the page data carries the type of the page data, and the page data is stored into the corresponding data storage space according to the type of the page data.
Therefore, when the page data is acquired, the same page data required by a plurality of pages can be acquired remotely at one time and stored in the data storage space corresponding to the pages, so that the situation that different pages of the small program need to be acquired remotely for many times when the same page data is displayed can be avoided, the uniform management and sharing of the same page data of different pages of the small program are realized, the data amount required to be processed when the page of the small program is displayed is reduced, and the resource occupation is reduced.
Illustratively, the respective pages of the applet share user personal information data. The types of page data thus include at least user personally identifying data and user personal historical behavior data. The user personal identification data and the user personal historical behavior data are page data shared by the pages of the applet. At the moment, multiple pages of the small program all need user personal identification data and user personal historical behavior data, interaction is established between each page and a page data storage space for storing the user personal identification data and the user personal historical behavior data, and when the page data are obtained, the page data carry the type of the page data, so that the user personal identification data and the user personal historical behavior data are simultaneously stored in the data storage spaces of the user personal identification data and the user personal historical behavior data of multiple page interactions. Therefore, in the running process of the small program, the plurality of data storage spaces for storing the user personal identification data and the user personal historical behavior data can provide the user personal identification data and the user personal historical behavior data for a plurality of pages interacted with the small program, the situation that different pages of the small program need to be remotely acquired for many times when the same page data is displayed can be avoided, the uniform management and sharing of the same page data of different pages of the small program are achieved, the data amount required to be processed when the page of the small program is displayed is reduced, and the resource occupation is reduced.
And S130, extracting page data required by the current page from each data storage space, and loading the page data into the current page for rendering.
Specifically, the current page is a page displayed on the screen. Typically a page to be preloaded or a page to be displayed. I.e. the page that needs to acquire page data for display. When a certain page is in a current page and needs content display, the current page loads page data in a data storage space corresponding to the current page for rendering, and in the rendering process, position calculation, style calculation and the like are carried out on each element in the page data to form rendering data viewed by a user, and finally the rendering data is displayed in the current page.
Exemplarily, fig. 2 is a schematic flowchart of a page loading process in a processing method of program page data according to an embodiment of the present disclosure. As shown in fig. 2, the extracting of the page data required by the current page from each data storage space, and the loading of the page data into the current page for rendering may specifically include:
s131, respectively determining the data types to be loaded in the frame templates according to the frame templates of the current pages.
Specifically, the frame template of the current page is a template, and determines the basic structure of the current page and the style of the displayed content. Illustratively, in the basic structure of the current page frame template, the top of the current page displays the title and personal information of the content, the left displays a picture, the right displays a text, and the character format, paragraph format, and the like of the displayed content are set. In the frame template of the current page, the data type to be loaded in the frame template can be determined. For example, the data types to be loaded in the frame template include user personal identification data and user personal historical behavior data, a picture data type and a text data type, and the like.
S132, extracting page data from the corresponding data storage space according to the data type, loading the page data into a frame template of the current page, and rendering the page.
Specifically, different types of page data correspond to different data storage spaces. After the data type is determined, page data are extracted from the corresponding data storage space to a cache of the page according to the data type, the page data are loaded to a corresponding part in a frame template of the current page, meanwhile, the page data are rendered according to the setting of the frame template on the display content style and the like, rendering data viewed by a user are formed, and finally, the rendering data are displayed in the current page.
According to the processing method of the program page data provided by the embodiment of the disclosure, when the applet remotely acquires the page data, the page data are stored into the at least two corresponding data storage spaces according to the type of the page data, so that the same page data required by a plurality of pages can be remotely acquired at one time when different pages of the applet acquire the same page data, thereby avoiding the situation that different pages of the applet need to be remotely acquired for multiple times when the same page data is displayed, realizing unified management and sharing of the same page data of different pages of the applet, reducing the data amount required to be processed when the page of the applet is displayed, and reducing resource occupation.
Example two
On the basis of the above technical solution, the second embodiment exemplarily shows a method for storing page data into at least two corresponding data storage spaces according to the type of the page data. Fig. 3 is a schematic flowchart of a processing method of program page data according to a second embodiment of the present disclosure, and as shown in fig. 3, the processing method of program page data may include:
and S110, when the small program runs in the environment program, if a page data remote acquisition requirement is generated, acquiring the page data from the remote.
And S121, acquiring the carried type tag or data storage space identification from the page data.
Specifically, the page data includes multiple types, the remotely acquired page data includes a type tag or a data storage space identifier of the page data, the type of the page data can be determined through the type tag of the page data, and a data storage space corresponding to the page data is determined according to the type of the page data. Or the page data carries the data storage space identification and establishes a corresponding relation with the data storage space.
And S122, storing the page data into at least two corresponding data storage spaces according to the type tag or the data storage space identifier.
Specifically, the interaction of the page data with the data storage space can be established according to the type tag or the data storage space identification. When the page data is the page data shared by at least two pages of the applet, the data storage spaces interacting with the page data comprise at least two, and the page data is stored into the at least two corresponding data storage spaces according to the type tag or the data storage space identifier, so that the same page data can be obtained from the at least two corresponding data storage spaces when different pages of the applet obtain the same page data.
And S130, extracting page data required by the current page from each data storage space, and loading the page data into the current page for rendering.
The processing method of the program page data provided by the embodiment of the disclosure acquires the carried type tag or data storage space identifier from the page data when the applet remotely acquires the page data, and stores the page data into at least two corresponding data storage spaces according to the type tag or data storage space identifier, so that the same page data can be acquired from at least two corresponding data storage spaces when different pages of the applet acquire the same page data, therefore, the same page data required by a plurality of pages can be remotely acquired at one time when the applet acquires the page data, thereby avoiding that different pages of the applet need to be remotely acquired for multiple times when the same page data is displayed, realizing the unified management and sharing of the same page data of different pages of the applet, reducing the data amount required to be processed when the applet page is displayed, and the resource occupation is reduced.
EXAMPLE III
Fig. 4 is a schematic flowchart of a processing method of program page data according to a third embodiment of the present disclosure, where on the basis of the foregoing embodiments, the processing method of program page data may include:
and S110, when the small program runs in the environment program, if a page data remote acquisition requirement is generated, acquiring the page data from the remote.
And S120, storing the page data into at least two corresponding data storage spaces according to the type of the page data.
And S130, extracting page data required by the current page from each data storage space, and loading the page data into the current page for rendering.
S140, when the change of the page data in any data storage space is monitored, detecting the page loaded with the changed page data in the cache.
Specifically, when the page is displayed, the page loads the page data storage space into the cache of the page, and renders the page data for display. When the page exits from display, the rendered data of the page is not immediately deleted from the cache, but is stored for a period of time for the user to review.
When the change of the page data in the data storage space is monitored, whether a page with changed page data is loaded in a cache of the page corresponding to the data storage space is detected.
Typically, a user's manipulation of a currently displayed page may cause the page data within the data storage space to be altered. Therefore, before monitoring that the page data in any data storage space is changed, the method may further include: and receiving input operation of a user on the current display page so as to change page data in the current display page. Specifically, the user may perform various input operations on the currently displayed page, for example, the user performs a refresh operation, a page data increment loading operation, a page preloading operation, a page display operation, or the like on the currently displayed page. After a user operates the current display page, a page data remote acquisition requirement is generated, and the acquired page data is the change data of the data storage space. And writing the changed page data into the data storage space of the corresponding type, and changing the page data in the data storage space. For example, if a user modifies his account name, it may affect that account names in several pages need to be updated synchronously.
And S150, updating the page in the cache according to the changed page data.
When detecting that the page of the changed page data exists in the cache, the page of the page data in the cache needs to be changed, so that the page data in the cache is consistent with the page data in the data storage space, and the page is displayed according to the page data in the data storage space.
Specifically, when the page data in the cache changes, the page in the cache is updated according to the changed data. The pages in the cache are updated according to the changed page data of the data storage space, so that when the page data in the data storage space is changed, the cache of each page of the small program corresponding to the data storage space is changed, and the consistency of the display contents corresponding to the same page data in each page of the small program is realized.
In addition, a modification log can be generated for the page data change in the data storage space, and the modification process and the modification state of the page data in the data storage space are recorded, so that the page display process of the applet can be checked, and the process of data change in the page display process of the applet can be known.
According to the processing method of the program page data provided by the embodiment of the disclosure, when the change of the page data in any data storage space is monitored, the page loaded with the changed page data in the cache is detected, and the page in the cache is updated according to the changed page data, so that when the page data in the data storage space is changed, the cache of each page of the applet corresponding to the data storage space is changed, and the consistency of the display contents corresponding to the same page data in each page of the applet is realized.
Example four
The embodiment of the disclosure also provides a processing device of the program page data. Fig. 5 is a schematic structural diagram of a processing apparatus for processing program page data according to a fourth embodiment of the disclosure. As shown in fig. 5, the apparatus includes: a page data acquisition module 10, a page data storage module 20 and a page data loading module 30.
A page data obtaining module 10, configured to obtain the page data from a remote location if a remote page data obtaining requirement is generated when the applet runs in the environment program.
In general, the generated page data remote acquisition requirements may include at least one of:
when the small program starts to run in the environment program, the page data remote acquisition requirement is determined to be generated. When the situation that a page refreshing instruction is generated by user operation is monitored, the page data remote acquisition requirement is determined to be generated. When the incremental loading indication of the page data generated by user operation is monitored, the remote acquisition requirement of the page data is determined to be generated. And when the page preloading requirement or the page display indication is monitored, determining to generate a page data remote acquisition requirement.
And the page data storage module 20 is configured to store the page data into at least two corresponding data storage spaces according to the type of the page data.
Specifically, the types of page data include at least user personal identification data and user personal historical behavior data. The storing of the page data into the at least two corresponding data storage spaces may specifically include acquiring a type tag or a data storage space identifier carried by the page data according to the type of the page data, and storing the page data into the at least two corresponding data storage spaces according to the type tag or the data storage space identifier.
And the page data loading module 30 is configured to extract page data required by the current page from each data storage space, and load the page data into the current page for rendering.
Specifically, the current page may be a page to be preloaded or a page to be displayed. The process of extracting the page data required by the current page from each data storage space and loading the page data into the current page for rendering may include determining the data types to be loaded in the frame templates according to the frame templates of the current page, extracting the page data from the corresponding data storage spaces according to the data types, loading the page data into the frame templates of the current page, and rendering.
The processing device for the program page data provided by the embodiment of the disclosure can execute the steps executed by the program development tool in the processing method for the program page data provided by the embodiment of the disclosure, and has the corresponding functional modules and beneficial effects of the execution method.
EXAMPLE five
Fig. 6 is a schematic structural diagram of a device for processing program page data according to a fifth embodiment of the present disclosure. As shown in fig. 6, the apparatus may further include: the page data acquisition module 10, the page data storage module 20, the page data loading module 30, the page data detection module 40 and the update module 50.
And the page data detection module 40 is configured to detect a page loaded with changed page data in the cache when it is monitored that the page data in any data storage space is changed.
Specifically, before monitoring that the page data in any data storage space is changed, the method may further include: and receiving input operation of a user on the current display page to change the page data in the current display page, and writing the changed page data into the data storage space of the corresponding type.
And the updating module 50 is configured to update the page in the cache according to the changed page data.
By the aid of the functions, when the shared data are changed, the page data in the cache are synchronously updated.
Example six
Fig. 7 is a schematic structural diagram of a terminal device according to a sixth embodiment of the present disclosure. A schematic structural diagram of a terminal device 700 suitable for implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a fixed terminal such as a digital TV, a desktop computer, and the like. The terminal device shown in fig. 7 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 7, the terminal device 700 may include a processing means (e.g., a central processing unit, a graphic processor, etc.) 701, which may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)702 or a program loaded from a storage means 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data necessary for the operation of the electronic apparatus 700 are also stored. The processing device 701, the ROM 702, and the RAM 703 are connected to each other by a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
Generally, the following devices may be connected to the I/O interface 705: input devices 706 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, or the like; an output device 707 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 708 including, for example, magnetic tape, hard disk, etc.; and a communication device 709. The communication means 709 may allow the terminal device 700 to communicate wirelessly or by wire with other devices to exchange data. While fig. 7 illustrates a terminal device 700 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may be alternatively implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer-readable medium, the computer program comprising program code for performing the method illustrated by the flow chart. In such embodiments, the computer program may be downloaded and installed from a network via the communication means 709, or may be installed from the storage means 708, or may be installed from the ROM 702. The computer program, when executed by the processing device 701, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having 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. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may be separate and not incorporated into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: when the small program runs in the environment program, if a page data remote acquisition requirement is generated, acquiring the page data from the remote; storing the page data into at least two corresponding data storage spaces according to the type of the page data; and extracting page data required by the current page from each data storage space, and loading the page data into the current page for rendering.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present disclosure may be implemented by software or hardware. The name of a module does not constitute a limitation on the module itself in some cases, for example, the page data loading module may also be described as "extracting page data required by a current page from each data storage space, and loading the page data into the current page for rendering".
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.

Claims (10)

1. A method for processing program page data, the method comprising:
when the small program runs in the environment program, if a page data remote acquisition requirement is generated, acquiring the page data from the remote;
storing the page data into at least two corresponding data storage spaces according to the type of the page data;
extracting page data required by a current page from each data storage space, and loading the page data into the current page for rendering;
the page data is classified according to the data information type;
the types of the page data comprise:
the system comprises user personal identification data and user personal historical behavior data, wherein the user personal identification data and the user personal historical behavior data are page data shared by all pages of the small program.
2. The method of claim 1, wherein generating a page data remote acquisition requirement comprises at least one of:
when the small program starts to run in the environment program, determining to generate a page data remote acquisition requirement;
when a page refreshing instruction generated by user operation is monitored, determining to generate a page data remote acquisition requirement;
when the incremental loading instruction of the page data generated by user operation is monitored, determining to generate a remote acquisition requirement of the page data;
when the page preloading requirement or the page display indication is monitored, the page data remote acquisition requirement is determined to be generated.
3. The method of claim 1, wherein storing page data into at least two corresponding data storage spaces according to the type of the page data comprises:
acquiring a carried type tag or a data storage space identifier from the page data;
and storing the page data into at least two corresponding data storage spaces according to the type tag or the data storage space identifier.
4. The method of claim 1, wherein the current page is a page to be preloaded or a page to be displayed.
5. The method of claim 4, wherein extracting page data required by a current page from each data storage space and loading the page data into the current page for rendering comprises:
respectively determining the types of data to be loaded in the frame templates according to the frame templates of the current page;
and extracting page data from the corresponding data storage space according to the data type, loading the page data into the frame template of the current page, and rendering the page data.
6. The method of claim 1, further comprising:
when the change of the page data in any data storage space is monitored, detecting a page loaded with the changed page data in a cache;
and updating the page in the cache according to the changed page data.
7. The method of claim 6, wherein before monitoring that the page data in any of the data storage spaces has changed, further comprising:
receiving input operation of a user on a current display page to change page data in the current display page;
and writing the changed page data into the data storage space of the corresponding type.
8. An apparatus for processing program page data, comprising:
the page data acquisition module is used for acquiring the page data from a remote place if a remote page data acquisition requirement is generated when the small program runs in the environment program;
the page data storage module is used for storing the page data into at least two corresponding data storage spaces according to the type of the page data;
the page data loading module is used for extracting page data required by the current page from each data storage space and loading the page data into the current page for rendering;
the page data is classified according to the data information type;
the types of the page data comprise:
the system comprises user personal identification data and user personal historical behavior data, wherein the user personal identification data and the user personal historical behavior data are page data shared by all pages of the small program.
9. A terminal device, comprising:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a method of processing program page data according to any one of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a method for processing program page data according to any one of claims 1 to 7.
CN201910107637.3A 2019-02-02 2019-02-02 Method, device, equipment and medium for processing program page data Active CN109857486B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910107637.3A CN109857486B (en) 2019-02-02 2019-02-02 Method, device, equipment and medium for processing program page data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910107637.3A CN109857486B (en) 2019-02-02 2019-02-02 Method, device, equipment and medium for processing program page data

Publications (2)

Publication Number Publication Date
CN109857486A CN109857486A (en) 2019-06-07
CN109857486B true CN109857486B (en) 2022-09-09

Family

ID=66897578

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910107637.3A Active CN109857486B (en) 2019-02-02 2019-02-02 Method, device, equipment and medium for processing program page data

Country Status (1)

Country Link
CN (1) CN109857486B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110321504B (en) * 2019-06-18 2023-09-22 平安医疗健康管理股份有限公司 Page processing method and device
CN110221930B (en) * 2019-06-20 2021-07-13 广州小鹏汽车科技有限公司 Interface display method and device of vehicle-mounted system
CN110333912B (en) * 2019-07-11 2023-04-18 百度在线网络技术(北京)有限公司 Method and device for prefetching applet data and computer readable storage medium
CN110990746A (en) * 2019-12-06 2020-04-10 北京同邦卓益科技有限公司 Page loading method, device, system, storage medium and electronic equipment
CN111143727A (en) * 2019-12-06 2020-05-12 维沃移动通信有限公司 Page loading method and electronic equipment
CN111078324B (en) * 2019-12-16 2023-06-06 百度在线网络技术(北京)有限公司 Method and apparatus for prefetching page data
CN112416410A (en) * 2020-12-09 2021-02-26 北京顺达同行科技有限公司 Data management method and device for small program, computer equipment and storage medium
CN113360341B (en) * 2021-06-04 2024-02-06 北京达佳互联信息技术有限公司 Front-end application maintenance and loading method and device
CN114661483A (en) * 2022-03-23 2022-06-24 支付宝(杭州)信息技术有限公司 Subprogram synchronous processing method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106294379A (en) * 2015-05-18 2017-01-04 阿里巴巴集团控股有限公司 The loading method of a kind of page, device and system
CN108874389A (en) * 2018-06-27 2018-11-23 中国建设银行股份有限公司 front end page development framework

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104063460B (en) * 2014-06-25 2018-10-09 北京奇虎科技有限公司 A kind of method and apparatus loading webpage in a browser
CN104657420B (en) * 2015-01-09 2019-06-04 北京京东尚科信息技术有限公司 Page display method and system
US10277362B2 (en) * 2015-12-30 2019-04-30 Facebook, Inc. Optimistic data fetching and rendering
US11157493B2 (en) * 2015-12-30 2021-10-26 Facebook, Inc. Optimistic data fetching and rendering

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106294379A (en) * 2015-05-18 2017-01-04 阿里巴巴集团控股有限公司 The loading method of a kind of page, device and system
CN108874389A (en) * 2018-06-27 2018-11-23 中国建设银行股份有限公司 front end page development framework

Also Published As

Publication number Publication date
CN109857486A (en) 2019-06-07

Similar Documents

Publication Publication Date Title
CN109857486B (en) Method, device, equipment and medium for processing program page data
CN109460233B (en) Method, device, terminal equipment and medium for updating native interface display of page
CN110634049B (en) Page display content processing method and device, electronic equipment and readable medium
CN109857506B (en) Method and device for realizing guide information, electronic equipment and storage medium
CN109491742B (en) Page table rendering method and device
CN111273830A (en) Data display method and device, electronic equipment and computer readable medium
CN111273985A (en) Page rendering method and device, electronic equipment and computer readable storage medium
CN111177634A (en) Multi-language supporting file content loading method, device, equipment and medium
CN110147283B (en) Display content switching display method, device, equipment and medium
CN112492399B (en) Information display method and device and electronic equipment
CN110134905B (en) Page update display method, device, equipment and storage medium
CN109976857B (en) Display control method and device of terminal interface, storage medium and electronic equipment
CN109992698B (en) Data processing method and device, electronic equipment and readable storage medium
CN111309406A (en) Event processing method and device of application program and electronic equipment
CN111290812B (en) Display method, device, terminal and storage medium of application control
CN111291090B (en) Method, device, electronic equipment and medium for acquiring time period based on time control
CN114489910A (en) Video conference data display method, device, equipment and medium
CN114090938A (en) Page processing method and equipment
CN111240718A (en) Theme updating method and device, electronic equipment and medium
CN114327188B (en) Form layout method, form layout device, electronic equipment and computer readable medium
CN112492381B (en) Information display method and device and electronic equipment
CN117851438A (en) Data analysis method and device, readable medium and electronic equipment
CN116820311A (en) Cover setting method and device, electronic equipment and storage medium
CN117667047A (en) Method, device, equipment and medium for generating function template
CN116028740A (en) Page display method and device, storage medium and electronic equipment

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