Page rendering method, device, electronic device and computer-readable storage medium

By obtaining and rendering the native views and preset views of the shopping client, the problem of poor user experience and traffic consumption caused by frequent version updates is solved, and the timely presentation of temporary event content and traffic saving are achieved.

CN111273985BActive Publication Date: 2024-10-11BEIJING YOUZHUJU NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010065375.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-01-20
Publication Date
2024-10-11
Estimated Expiration
2040-06-16

AI Technical Summary

Technical Problem

In the existing technology, frequent version updates of the shopping client require users to re-download the new version, which cannot meet the needs of temporary activities, resulting in poor user experience and high traffic consumption.

Method used

By detecting the page display operation, the rendering data of the native view and the preset view are obtained, and a predetermined rendering engine is used to render the native view and the preset view respectively, thereby realizing the rendering and display of temporary active content and preventing users from re-downloading a new version of the client.

Benefits of technology

It improves the user experience and reduces unnecessary traffic consumption, allowing users to view new event content without re-downloading a new version of the client to meet temporary event needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111273985B_ABST
    Figure CN111273985B_ABST
Patent Text Reader

Abstract

The disclosed embodiments relate to the field of computer software technology, and disclose a page rendering method, device, electronic device, and computer-readable storage medium, wherein the page rendering method includes: when a display operation for any page of a client is detected, obtaining first rendering data of a native view of any page, and obtaining second rendering data of a preset view of any page, wherein the native view is an inherent view in any page, and the preset view is a transparent view covering the view layer of the native view; then, through a predetermined rendering engine, the native view is rendered according to the first rendering data, and the preset view is rendered according to the second rendering data. The method of the disclosed embodiment allows users to view new active content in the client without re-downloading a new version of the client, which greatly improves the user experience, and also effectively avoids users from consuming unnecessary traffic due to continuous client updates.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present disclosure relate to the field of computer software technology. Specifically, the present disclosure relates to a page rendering method, device, electronic device and computer-readable storage medium. Background Art

[0002] In the prior art, with the popularization of terminal devices, such as smart phones, tablet computers, mobile terminals and other devices, there are more and more clients running on mobile terminals. The emergence of a large number of clients allows users to experience the convenience brought by different clients, but also brings certain troubles to users. For example, users need to constantly update the client version.

[0003] In particular, when merchants of shopping clients plan some activities, they usually have R&D personnel develop the planned activities in advance, and then integrate them into the shopping client to present them to users on the day of the activity. However, after the R&D personnel complete the development of the planned activities, they can only be implemented by upgrading the client version (for example, upgrading the shopping client version 1.0 to the shopping client version 1.1), that is, the client version needs to be released again.

[0004] However, this implementation method not only requires users to re-download a new version of the client to view promotional activities, which brings great inconvenience to users and leads to a poor user experience, but the continuous updating of the client also causes a great consumption of user traffic; in addition, upgrading the client version cannot meet the ever-changing event needs or the needs of holding temporary events. Summary of the invention

[0005] The purpose of the embodiments of the present disclosure is to solve at least one of the above technical defects, and the following technical solutions are proposed:

[0006] On the one hand, a page rendering method is provided, comprising:

[0007] When a display operation for any page of the client is detected, first rendering data of a native view of any page is obtained, and second rendering data of a preset view of any page is obtained, where the native view is an inherent view in any page, and the preset view is a transparent view covering a view layer of the native view;

[0008] The native view is rendered according to the first rendering data, and the preset view is rendered according to the second rendering data, through a predetermined rendering engine.

[0009] In one aspect, a page rendering device is provided, comprising:

[0010] A first processing module is used to, when a display operation on any page of the client is detected, obtain first rendering data of a native view of any page and obtain second rendering data of a preset view of any page, wherein the native view is an inherent view in any page and the preset view is a transparent view covering a view layer of the native view;

[0011] The rendering module is used to render the native view according to the first rendering data and to render the preset view according to the second rendering data through a predetermined rendering engine.

[0012] On the one hand, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the above-mentioned page rendering method is implemented when the processor executes the program.

[0013] On the one hand, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the above-mentioned page rendering method is implemented.

[0014] The page rendering method of the disclosed embodiment renders the native view inherent in any page of the client according to the first rendering data obtained through a predetermined rendering engine, so that the inherent content or inherent function of the client can be normally rendered and displayed. The transparent view covering the view layer of the native view is rendered according to the second rendering data obtained through the predetermined rendering engine. The temporarily held activity content or the temporarily changed activity content can be rendered and displayed in the transparent view covering the view layer of the native view by means of the second rendering data, so that the activity content is presented to the user in a timely manner, so that the user can view the new activity content in the client without re-downloading the new version of the client, which greatly improves the user experience and also effectively avoids the user from consuming unnecessary traffic due to continuous updating of the client.

[0015] Additional aspects and advantages of the embodiments of the present disclosure will be partially given in the description below, which will become apparent from the description below, or will be learned through the practice of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The above and / or additional aspects and advantages of the embodiments of the present disclosure will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0017] Figure 1 A schematic diagram of a page rendering method according to an embodiment of the present disclosure;

[0018] Figure 2 A schematic diagram of the basic structure of a page rendering device according to an embodiment of the present disclosure;

[0019] Figure 3It is a schematic diagram of the structure of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0020] Embodiments of the present disclosure are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present disclosure, and cannot be interpreted as limiting the present disclosure.

[0021] It will be understood by those skilled in the art that, unless expressly stated, the singular forms "one", "said", and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present disclosure refers to the presence of the features, integers, steps, operations, elements, and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, it may be directly connected or coupled to the other element, or there may be intermediate elements. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein includes all or any unit and all combinations of one or more associated listed items.

[0022] In order to make the objectives, technical solutions and advantages of the embodiments of the present disclosure more clear, the embodiments of the present disclosure will be further described in detail below with reference to the accompanying drawings.

[0023] The following specific embodiments are used to describe in detail the technical solutions of the embodiments of the present disclosure and how the technical solutions of the embodiments of the present disclosure solve the above-mentioned technical problems. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present disclosure will be described below in conjunction with the accompanying drawings.

[0024] An embodiment of the present disclosure provides an information interaction method, which is executed by a computer device, which may be a terminal. The terminal may be a desktop device or a mobile terminal. Figure 1 As shown, the method includes:

[0025] Step S110, when a display operation for any page of the client is detected, the first rendering data of the native view of any page is obtained, and the second rendering data of the preset view of any page is obtained, the native view is the inherent view in any page, and the preset view is a transparent view covering the view layer of the native view.

[0026] Specifically, the user can access any page (eg, page A) of any client (eg, shopping client) in the terminal device as needed to display any page of the client. Correspondingly, the terminal device detects the user's display operation on any page of the client.

[0027] Specifically, when the terminal device detects a display operation for any page of the client, it can obtain first rendering data of the native view of any page of the client and second rendering data of the preset view of any page, wherein the native view is the inherent view in any page and the preset view is a transparent view covering the view layer of the native view.

[0028] Step S120: Rendering the native view according to the first rendering data, and rendering the preset view according to the second rendering data, by using a predetermined rendering engine.

[0029] Specifically, after obtaining the first rendering data of the native view of any page and the second rendering data of the preset view of any page, the native view can be rendered according to the first rendering data through a predetermined rendering engine, so as to normally display the inherent content or inherent function of any page, and the transparent view covering the view layer of the native view can be rendered according to the second rendering data through a predetermined rendering engine, so as to timely present the temporarily held activity content or the temporarily changed activity content to the user.

[0030] The page rendering method of the disclosed embodiment renders the native view inherent in any page of the client according to the first rendering data obtained through a predetermined rendering engine, so that the inherent content or inherent function of the client can be normally rendered and displayed. The transparent view covering the view layer of the native view is rendered according to the second rendering data obtained through the predetermined rendering engine. The temporarily held activity content or the temporarily changed activity content can be rendered and displayed in the transparent view covering the view layer of the native view by means of the second rendering data, so that the activity content is presented to the user in a timely manner, so that the user can view the new activity content in the client without re-downloading the new version of the client, which greatly improves the user experience and also effectively avoids the user from consuming unnecessary traffic due to continuous updating of the client.

[0031] In one possible implementation, when obtaining the first rendering data of the native view of page A and the second rendering data of the preset view, the first rendering data of the native view of page A can be obtained from the local cache, and the second rendering data of the preset view of page A can be obtained from the local cache or the server corresponding to the client.

[0032] In actual applications, developers can only make necessary views or functions or content (i.e., the above-mentioned native views) in each page of the client to realize the basic functions or basic content of each page of the client, and at the same time cache the rendering data of the basic functions or basic content of each page (i.e., the above-mentioned first rendering data) as cache data in the client, and publish the client to the application store for users to download. Among them, when the user downloads and installs the client, the cache data in the client (i.e., the above-mentioned first rendering data) will be saved to the terminal device, so that every time the user visits the client's page, the terminal device will obtain the first rendering data from the local cache, and use the first rendering data to render and display the native vision of the corresponding page of the client.

[0033] Specifically, other functions or other content besides the native view can be presented through a preset view (i.e., a transparent view covering the view layer of the native view). At this time, it can be determined whether to obtain the rendering data of the preset view (i.e., the second rendering data mentioned above) from the local cache or from the server corresponding to the client according to the specific situation.

[0034] In one example, when obtaining the second rendering data of the preset view of any page from the local cache or the server corresponding to the client, the second rendering data of the preset view of any page can be obtained from the server by sending a first data acquisition request to the server.

[0035] If the activity content of activity N1 is to be displayed in page A of the shopping client, that is, the activity content of activity N1 is to be displayed in the preset page, then regardless of whether the rendering data of the activity content of activity N1 (that is, the second rendering data mentioned above) is cached in the terminal device, a data acquisition request (that is, the first data acquisition request mentioned above) is sent to the server corresponding to the shopping client to obtain the second rendering data of the activity content of activity N1 from the server, that is, regardless of whether the rendering data of the activity content of activity N1 is stored in the local cache, a data acquisition request for obtaining the rendering data of the activity content of activity N1 is sent to the server.

[0036] The data acquisition request may include page identification information (eg, page ID) of page A, so that the server can determine the second rendering data corresponding to page A according to the page identification information, and return the second rendering data to the terminal device.

[0037] In another example, when obtaining the second rendering data of the preset view of any page from the local cache or the server corresponding to the client, when the historical rendering data of the preset view of any page is stored in the local cache, a second data acquisition request can be sent to the server to detect whether the server stores second rendering data that is newer than the historical rendering data, and when it is detected that the server stores second rendering data that is newer than the historical rendering data, the second rendering data is obtained from the server; when the server does not store second rendering data that is newer than the historical rendering data, the historical rendering data is obtained from the local cache, and the historical rendering data is determined as the second rendering data.

[0038] If the activity content of activity N1 is to be displayed in page A of the shopping client, and the historical rendering data of the activity content of activity N1 in page A is stored in the local cache, a data acquisition request (i.e., the second data acquisition request mentioned above) can be sent to the server to determine whether the server stores second rendering data that is newer than the historical rendering data. The data acquisition request can include the version information of the historical rendering data (e.g., version 1.0) and the page identification information of page A (e.g., page ID), so that the server determines whether it stores second rendering data (e.g., version 1.1) that is newer than the version information of the historical rendering data (e.g., version 1.0) based on the page identification information of page A.

[0039] If the server stores second rendering data that is newer than the historical rendering data, a corresponding response message is returned to the client to notify the client that the server stores second rendering data with version information that is newer than the historical rendering data. Correspondingly, when the client receives the response message of the second rendering data that stores version information that is newer than the historical rendering data, the second rendering data and the version information of the second rendering data can be obtained from the server, and the activity content of activity N1 in page A is rendered and displayed according to the obtained second rendering data.

[0040] Among them, after the client obtains the second rendering data that is newer than the historical rendering data, it can update the historical rendering data stored in the local cache based on the second rendering data that is newer than the historical rendering data, and at the same time update the version information of the locally cached historical rendering data based on the version information of the second rendering data, that is, update the second rendering data and the version information of the second rendering data to the locally cached historical rendering data and the version information of the historical rendering data.

[0041] If the server does not store the second rendering data that is newer than the historical rendering data, a corresponding response message is returned to the client to notify the client that it does not store the second rendering data with a version information that is newer than the historical rendering data. Correspondingly, when the client receives the response message that the second rendering data with a version information that is newer than the historical rendering data is not stored, the client obtains the historical rendering data from the local cache and determines the historical rendering data as the second rendering data, that is, renders and displays the activity content of activity N1 in page A according to the historical rendering data in the local cache.

[0042] In another example, the first data acquisition request or the second data acquisition request sent by the client to the server may also include identification information of the user using the client, such as identification information U1_ID of user U1, identification information U2_ID of user U2, and identification information U3_ID of user U3, so that the server determines the user's level information or type information based on the user's identification information, and returns a version of the second rendering data that matches the user's level information based on the user's level information. For example, when it is determined that the level information of user U1 is a gold user, the first level second rendering data is returned to the client of user U1; when it is determined that the level information of user U2 is a silver user, the second level second rendering data is returned to the client of user U2; and when it is determined that the level information of user U3 is a bronze user, the third level second rendering data is returned to the client of user U3.

[0043] In another example, the second rendering data obtained from the server may be a script written in a predetermined scripting language (e.g., lua scripting language), that is, the developer writes the activity content of activity N1 in page A in a predetermined scripting language, generates a corresponding script, and stores the script in the server. Among them, the server can actively send the script to the corresponding client, or send the script to the corresponding client when receiving a data acquisition request. Correspondingly, after the client obtains the corresponding script from the server, it parses the script to obtain the corresponding second rendering data. It should be noted that the predetermined rendering engine is matched with the predetermined scripting language, that is, the predetermined rendering engine can parse the script written in the predetermined scripting language, and render and display the preset view according to the second rendering data obtained by the parsing.

[0044] In a possible implementation, before obtaining the first rendering data of the native view of any page and obtaining the second rendering data of the preset view of any page, the method further includes:

[0045] A preset application programming interface API is established between the preset view and the native view, so that resources and functions are shared between the preset view and the native view.

[0046] Specifically, the views of any page of the client include native views and preset views. However, if the native views and preset views act independently and do not communicate with each other, it will cause waste of resources and limit product functions. Therefore, an API is established between the native view and the preset view, so that the preset view can use the API provided by the native view to share resources between the native view and the preset view, such as sharing long link channels. In addition, some functions that the preset view does not have can be realized, that is, function sharing between the native view and the preset view, such as obtaining terminal device (such as mobile phone) information.

[0047] After rendering the native view according to the first rendering data and rendering the preset view according to the second rendering data by a predetermined rendering engine, the method further includes:

[0048] Detect triggering actions on rendered preset views;

[0049] When a trigger operation for the rendered preset view is detected, a target functional object corresponding to the trigger operation is determined;

[0050] Based on the preset function interface between the preset view and the target function object, perform corresponding operations to provide corresponding functions of the target function object;

[0051] The preset view includes at least one functional object.

[0052] Specifically, with the continuous development and updating of technology, more and more activity content or new functions are displayed in the preset view, such as multiple independent and complex activities in the preset view (that is, multiple functional objects that implement different functions), that is, at least one functional object is included in the preset view. Therefore, after the terminal device determines that the user's trigger operation is an operation on the preset view, it can further determine the target functional object in the preset view corresponding to the trigger operation, that is, determine which functional object in the preset view the user's trigger operation is a trigger operation for.

[0053] Further, after determining the target functional object triggered by the user, a corresponding operation can be performed through the preset function interface between the preset view and the target functional object, such as loading the functional object to provide the corresponding function of the target functional object, that is, the corresponding function of the target functional object is realized through the preset function interface between the preset view and the target functional object, so that it can be loaded on demand according to the triggering requirements of the user. Before providing the corresponding function to the user through the preset function interface between the preset view and the target functional object, the preset function interface corresponding to each preset view and each functional object can be established in advance.

[0054] Furthermore, in the process of executing corresponding operations based on the preset function interface between the preset view and the target function object, the preset view loads the corresponding preset function interface according to the target function object triggered by the user, calls the corresponding display framework through the preset function interface, and displays the relevant functions to the user through the display framework.

[0055] Figure 2 A schematic diagram of a page rendering device provided by an embodiment of the present disclosure is shown in FIG. Figure 2 As shown, the device 200 may include a first processing module 201 and a rendering module 202, wherein:

[0056] The first processing module 201 is used to obtain first rendering data of a native view of any page and second rendering data of a preset view of any page when a display operation on any page of the client is detected, wherein the native view is an inherent view in any page and the preset view is a transparent view covering a view layer of the native view;

[0057] The rendering module 202 is configured to render the native view according to the first rendering data and the preset view according to the second rendering data through a predetermined rendering engine.

[0058] In one implementation, when the first processing module obtains the first rendering data of the native view of any page, it is specifically used to:

[0059] Get the first rendering data of the native view of any page from the local cache;

[0060] When the first processing module obtains the second rendering data of the preset view of any page, it is specifically used to:

[0061] The second rendering data of the preset view of any page is obtained from the local cache or the server corresponding to the client.

[0062] In one implementation, when the first processing module obtains the second rendering data of the preset view of any page from the local cache or the server corresponding to the client, it performs any of the following:

[0063] Acquire second rendering data of a preset view of any page from the server by sending a first data acquisition request to the server;

[0064] If the local cache stores historical rendering data of the preset view of any page, a second data acquisition request is sent to the server to detect whether the server stores second rendering data that is newer than the historical rendering data. When it is detected that the server stores second rendering data that is newer than the historical rendering data, the second rendering data is acquired from the server. When the server does not store second rendering data that is newer than the historical rendering data, the historical rendering data is acquired from the local cache and the historical rendering data is determined as the second rendering data.

[0065] In one implementation, an update module is also included;

[0066] The updating module is used to update the historical rendering data stored in the local cache according to the second rendering data which is newer than the historical rendering data.

[0067] In one implementation, the first data acquisition request and the second data request include at least one of the following:

[0068] Page identification information of any page;

[0069] Identification information of the user using the client;

[0070] Version information of historical rendering data.

[0071] In one implementation, it also includes establishing a module;

[0072] The module is used to establish a preset application programming interface API between the preset view and the native view, so that resources and functions can be shared between the preset view and the native view.

[0073] In one implementation, it further includes a second processing module;

[0074] The second processing module is used to detect a trigger operation for the rendered preset view; and when the trigger operation for the rendered preset view is detected, determine the target function object corresponding to the trigger operation; and based on the preset function interface between the preset view and the target function object, perform a corresponding operation to provide a corresponding function of the target function object;

[0075] The preset view includes at least one functional object.

[0076] The device provided by the embodiment of the present disclosure uses a predetermined rendering engine to render a native view inherent in any page of the client according to the first rendering data obtained, so that the inherent content or inherent function of the client can be normally rendered and displayed. The predetermined rendering engine uses the second rendering data obtained to render a transparent view covering the view layer of the native view, and the temporarily held activity content or the temporarily changed activity content can be rendered and displayed in the transparent view covering the view layer of the native view by means of the second rendering data, so that the activity content can be presented to the user in a timely manner, so that the user can view the new activity content in the client without re-downloading the new version of the client, which greatly improves the user experience and also effectively avoids the user from consuming unnecessary traffic due to continuous client updates.

[0077] It should be noted that this embodiment is an apparatus embodiment corresponding to the above-mentioned method embodiment, and this embodiment can be implemented in conjunction with the above-mentioned method embodiment. The relevant technical details mentioned in the above-mentioned method embodiment are still valid in this embodiment, and in order to reduce repetition, they are not repeated here. Accordingly, the relevant technical details mentioned in this embodiment can also be applied in the above-mentioned method embodiment.

[0078] Reference below Figure 3 , which shows a schematic diagram of the structure of an electronic device 300 suitable for implementing the embodiment of the present disclosure. The terminal device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 3 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0079] The electronic device includes a memory and a processor, wherein the processor here can be referred to as the processing device 301 described below, and the memory includes at least one of the read-only memory (ROM) 302, the random access memory (RAM) 303, and the storage device 308 described below, as shown below:

[0080] like Figure 3As shown, the electronic device 300 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 301, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 302 or a program loaded from a storage device 308 into a random access memory (RAM) 303. In the RAM 303, various programs and data required for the operation of the electronic device 300 are also stored. The processing device 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input / output (I / O) interface 305 is also connected to the bus 304.

[0081] Typically, the following devices may be connected to the I / O interface 305: input devices 306 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 307 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 308 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 309. The communication devices 309 may allow the electronic device 300 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 3 The electronic device 300 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0082] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 309, or installed from the storage device 308, or installed from the ROM 302. When the computer program is executed by the processing device 301, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0083] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0084] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0085] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device:

[0086] When a display operation for any page of the client is detected, first rendering data of a native view of any page is obtained, and second rendering data of a preset view of any page is obtained, where the native view is an inherent view in any page, and the preset view is a transparent view covering a view layer of the native view;

[0087] The native view is rendered according to the first rendering data, and the preset view is rendered according to the second rendering data, through a predetermined rendering engine.

[0088] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, 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 may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0089] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0090] The modules or units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a module or unit does not limit the unit itself in some cases. For example, the acquisition module may also be described as "a module for acquiring at least one event processing method corresponding to a predetermined live event when a predetermined live event occurs".

[0091] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0092] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0093] According to one or more embodiments of the present disclosure, a page rendering method is provided, including:

[0094] When a display operation for any page of the client is detected, first rendering data of a native view of any page is obtained, and second rendering data of a preset view of any page is obtained, where the native view is an inherent view in any page, and the preset view is a transparent view covering a view layer of the native view;

[0095] The native view is rendered according to the first rendering data, and the preset view is rendered according to the second rendering data, through a predetermined rendering engine.

[0096] In one implementation, obtaining first rendering data of a native view of any page includes:

[0097] Get the first rendering data of the native view of any page from the local cache;

[0098] Get the second rendering data of the preset view of any page, including:

[0099] The second rendering data of the preset view of any page is obtained from the local cache or the server corresponding to the client.

[0100] In one implementation, obtaining the second rendering data of the preset view of any page from the local cache or the server corresponding to the client includes any of the following:

[0101] Acquire second rendering data of a preset view of any page from the server by sending a first data acquisition request to the server;

[0102] If the local cache stores historical rendering data of the preset view of any page, a second data acquisition request is sent to the server to detect whether the server stores second rendering data that is newer than the historical rendering data. When it is detected that the server stores second rendering data that is newer than the historical rendering data, the second rendering data is acquired from the server. When the server does not store second rendering data that is newer than the historical rendering data, the historical rendering data is acquired from the local cache and the historical rendering data is determined as the second rendering data.

[0103] In one implementation, after obtaining the rendering data that is newer than the second historical rendering data from the server, the method further includes:

[0104] The historical rendering data stored in the local cache is updated according to the second rendering data which is newer than the historical rendering data.

[0105] In one implementation, the first data acquisition request and the second data request include at least one of the following:

[0106] Page identification information of any page;

[0107] Identification information of the user using the client;

[0108] Version information of historical rendering data.

[0109] In one implementation, before obtaining the first rendering data of the native view of any page and obtaining the second rendering data of the preset view of any page, the method further includes:

[0110] A preset application programming interface API is established between the preset view and the native view, so that resources and functions are shared between the preset view and the native view.

[0111] In one implementation, after rendering the native view according to the first rendering data and rendering the preset view according to the second rendering data by a predetermined rendering engine, the method further includes:

[0112] Detect triggering actions on rendered preset views;

[0113] When a trigger operation for the rendered preset view is detected, a target functional object corresponding to the trigger operation is determined;

[0114] Based on the preset function interface between the preset view and the target function object, perform corresponding operations to provide corresponding functions of the target function object;

[0115] The preset view includes at least one functional object.

[0116] According to one or more embodiments of the present disclosure, a page rendering device is provided, including:

[0117] A first processing module is used to, when a display operation on any page of the client is detected, obtain first rendering data of a native view of any page and obtain second rendering data of a preset view of any page, wherein the native view is an inherent view in any page and the preset view is a transparent view covering a view layer of the native view;

[0118] The rendering module is used to render the native view according to the first rendering data and to render the preset view according to the second rendering data through a predetermined rendering engine.

[0119] In one implementation, when the first processing module obtains the first rendering data of the native view of any page, it is specifically used to:

[0120] Get the first rendering data of the native view of any page from the local cache;

[0121] When the first processing module obtains the second rendering data of the preset view of any page, it is specifically used to:

[0122] The second rendering data of the preset view of any page is obtained from the local cache or the server corresponding to the client.

[0123] In one implementation, when the first processing module obtains the second rendering data of the preset view of any page from the local cache or the server corresponding to the client, it performs any of the following:

[0124] Acquire second rendering data of a preset view of any page from the server by sending a first data acquisition request to the server;

[0125] If the local cache stores historical rendering data of the preset view of any page, a second data acquisition request is sent to the server to detect whether the server stores second rendering data that is newer than the historical rendering data. When it is detected that the server stores second rendering data that is newer than the historical rendering data, the second rendering data is acquired from the server. When the server does not store second rendering data that is newer than the historical rendering data, the historical rendering data is acquired from the local cache and the historical rendering data is determined as the second rendering data.

[0126] In one implementation, an update module is also included;

[0127] The updating module is used to update the historical rendering data stored in the local cache according to the second rendering data which is newer than the historical rendering data.

[0128] In one implementation, the first data acquisition request and the second data request include at least one of the following:

[0129] Page identification information of any page;

[0130] Identification information of the user using the client;

[0131] Version information of historical rendering data.

[0132] In one implementation, it also includes establishing a module;

[0133] The module is used to establish a preset application programming interface API between the preset view and the native view, so that resources and functions can be shared between the preset view and the native view.

[0134] In one implementation, it further includes a second processing module;

[0135] The second processing module is used to detect a trigger operation for the rendered preset view; and when the trigger operation for the rendered preset view is detected, determine the target function object corresponding to the trigger operation; and based on the preset function interface between the preset view and the target function object, perform a corresponding operation to provide a corresponding function of the target function object;

[0136] The preset view includes at least one functional object.

[0137] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.

[0138] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0139] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.

Claims

1. A page rendering method, characterized in that: include: When a display operation for any page of the client is detected, first rendering data of a native view of the any page is obtained, and second rendering data of a preset view of the any page is obtained, wherein the native view is an inherent view in the any page, and the preset view is a transparent view covering a view layer of the native view; Before obtaining the first rendering data of the native view of any page and obtaining the second rendering data of the preset view of any page, the method further includes: Establishing a preset application programming interface API between the preset view and the native view, so that resources and functions are shared between the preset view and the native view; The method further comprises: rendering the native view according to the first rendering data and the preset view according to the second rendering data by a predetermined rendering engine; after rendering the native view according to the first rendering data and the preset view according to the second rendering data by a predetermined rendering engine, the method further comprises: Detect triggering actions on rendered preset views; When a trigger operation for the rendered preset view is detected, determining a target functional object corresponding to the trigger operation; Based on the preset function interface between the preset view and the target function object, performing corresponding operations to provide corresponding functions of the target function object; The preset view includes at least one function object that is functionally shared with a corresponding function object in the native view through the preset application programming interface API.

2. The method according to claim 1, characterized in that Obtaining first rendering data of a native view of any of the pages, including: Obtaining first rendering data of a native view of any of the pages from a local cache; Obtaining second rendering data of a preset view of any of the pages, including: The second rendering data of the preset view of any one of the pages is obtained from the local cache or the server corresponding to the client.

3. The method according to claim 2, characterized in that Acquiring second rendering data of a preset view of any of the pages from a local cache or a server corresponding to the client includes any of the following: Acquire second rendering data of the preset view of any one of the pages from the server by sending a first data acquisition request to the server; If the local cache stores historical rendering data of the preset view of any of the pages, a second data acquisition request is sent to the server to detect whether the server stores second rendering data that is newer than the historical rendering data, and when it is detected that the server stores second rendering data that is newer than the historical rendering data, the second rendering data is acquired from the server; when the server does not store second rendering data that is newer than the historical rendering data, the historical rendering data is acquired from the local cache, and the historical rendering data is determined as the second rendering data.

4. The method according to claim 3, characterized in that After acquiring the rendering data newer than the historical second rendering data from the server, the method further includes: The historical rendering data stored in the local cache is updated according to the second rendering data that is newer than the historical rendering data.

5. The method according to claim 3, characterized in that: The first data acquisition request and the second data request include at least one of the following: Page identification information of any of the pages; Identification information of a user using the client; Version information of historical rendering data.

6. A page rendering device, characterized in that: include: A first processing module is configured to, when a display operation is detected for any page of the client, obtain first rendering data of a native view of the any page and obtain second rendering data of a preset view of the any page, wherein the native view is an inherent view in the any page and the preset view is a transparent view covering a view layer of the native view; Before obtaining the first rendering data of the native view of any page and obtaining the second rendering data of the preset view of any page, the method further includes: Establishing a preset application programming interface API between the preset view and the native view, so that resources and functions are shared between the preset view and the native view; A rendering module, configured to render the native view according to the first rendering data through a predetermined rendering engine, and to render the preset view according to the second rendering data; after rendering the native view according to the first rendering data through a predetermined rendering engine, and rendering the preset view according to the second rendering data, further comprising: Detect triggering actions on rendered preset views; When a trigger operation for the rendered preset view is detected, determining a target functional object corresponding to the trigger operation; Based on the preset function interface between the preset view and the target function object, performing corresponding operations to provide corresponding functions of the target function object; The preset view includes at least one function object that is functionally shared with a corresponding function object in the native view through the preset application programming interface API.

7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the page rendering method described in any one of claims 1 to 5 is implemented.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the page rendering method according to any one of claims 1 to 5.