CN115495680A - Page processing method and device, electronic equipment and storage medium - Google Patents

Page processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115495680A
CN115495680A CN202211268093.7A CN202211268093A CN115495680A CN 115495680 A CN115495680 A CN 115495680A CN 202211268093 A CN202211268093 A CN 202211268093A CN 115495680 A CN115495680 A CN 115495680A
Authority
CN
China
Prior art keywords
page
value
snooping
link
monitoring
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211268093.7A
Other languages
Chinese (zh)
Inventor
林高
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information 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 Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202211268093.7A priority Critical patent/CN115495680A/en
Publication of CN115495680A publication Critical patent/CN115495680A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Abstract

The disclosure relates to a page processing method, a page processing device, an electronic device and a storage medium, wherein the page processing method comprises the following steps: monitoring page actions related to a first monitoring object preset in a first page; storing a first value assigned to the first snooping object by the first snooping object and the page action; and generating a first page link based on the first monitored object and the first value, so as to restore a first page based on the first page link, wherein the restored first page comprises the first monitored object and the first value. According to the page processing method, the page processing device, the electronic equipment and the storage medium, the problem that data restoration in a page is limited can be solved, the monitored object and the value of the monitored object can be obtained through page linking, and therefore operation data of a sharer on the page for the monitored object can be obtained.

Description

Page processing method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a page processing method and apparatus, an electronic device, and a storage medium.
Background
With the diversification of information acquisition approaches and the increasing information sharing requirements of people, in a scene that a user browses a page, the user often wants to share some links across local and client sides, and a third party can acquire related information by opening the links shared by sharers.
For example, in the related page sharing method, data can be carried across terminals in a Uniform Resource Locator (URL) resource manner. By serializing the information onto the visited address for browsing, state retention during network delivery is achieved. And when the third party is opened, acquiring the state on the URL according to the requirement, and then restoring the page data according to the scene.
However, in such a method, there is a limitation on data restoration in the page, and the operation data of the sharer on the page cannot be obtained.
Disclosure of Invention
The disclosure provides a page processing method, a page processing device, an electronic device and a storage medium, which are used for at least solving the problem that the data restoration in a page is limited in the related art. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a page processing method, including: monitoring page actions related to a first monitored object preset in a first page, wherein the page actions are used for assigning values to the first monitored object; storing a first value assigned to the first snooping object by the first snooping object and the page action; and generating a first page link based on the first snooping object and the first value, so as to restore a first page based on the first page link, wherein the restored first page comprises the first snooping object and the first value.
Optionally, the first interception object is a deep link object, where the intercepting a page action related to a preset first interception object in a first page includes: and monitoring page actions related to a preset first monitoring object in a first page by recording data operations related to the first monitoring object.
Optionally, the storing the first snooping object and the page action assigning a first value to the first snooping object includes: determining a page link serialization method corresponding to a development frame of a first page based on a preset first adaptation packet, wherein the page link serialization methods corresponding to different development frames are stored in the first adaptation packet; serializing the first monitoring object and the first value based on a page link serialization method corresponding to the first page, and storing the serialized first monitoring object and first value.
Optionally, the page processing method further includes: acquiring a second page link of a second page to be generated, wherein a second monitoring object and a second value of the second monitoring object are specified in the second page link; and generating the second page based on the second monitoring object, the second value and a development method corresponding to a development frame of the second page, wherein the second page comprises the second monitoring object and the second value.
Optionally, the page processing method further includes: and storing the second monitoring object and the second value based on a development method corresponding to a development frame of the second page.
Optionally, the storing the second listening object and the second value based on the development method corresponding to the development frame of the second page includes: determining a page link deserialization method corresponding to a development frame of the second page based on a preset second adaptation packet, wherein the page link deserialization methods corresponding to different development frames are stored in the second adaptation packet; and deserializing the second monitoring object and the second value based on a page link deserializing method corresponding to the second page, and storing the deserialized second monitoring object and second value.
Optionally, the storing the first interception object and the first value assigned to the first interception object by the page action based on the development method corresponding to the development frame of the first page includes: responding to the on state of a preset updating switch, and storing the first monitoring object and the first value into a preset object space; and responding to the state that the updating switch is closed, caching the first monitoring object and the first value into a preset caching space until the updating switch is turned on, and storing the first monitoring object and the first value into the object space.
According to a second aspect of the embodiments of the present disclosure, there is provided a page processing apparatus including: the monitoring unit is configured to monitor a page action related to a first monitored object preset in a first page, wherein the page action is used for assigning a value to the first monitored object; a storage unit configured to store the first snooping object and a first value assigned to the first snooping object by the page action; a generating unit configured to generate a first page link based on the first snooping object and the first value, for restoring a first page based on the first page link, wherein the restored first page includes the first snooping object and the first value.
Optionally, the first interception object is a deep link object, where the intercepting a page action related to a preset first interception object in a first page includes: and monitoring page actions related to a preset first monitoring object in a first page by recording data operations related to the first monitoring object.
Optionally, the storage unit is further configured to: determining a page link serialization method corresponding to a development frame of a first page based on a preset first adaptation packet, wherein the page link serialization methods corresponding to different development frames are stored in the first adaptation packet; serializing the first monitored object and the first value based on a page link serialization method corresponding to the first page, and storing the serialized first monitored object and the first value.
Optionally, the page processing apparatus further includes: the acquisition unit is configured to acquire a second page link of a second page to be generated, wherein a second monitoring object and a second value of the second monitoring object are specified in the second page link; a page generating unit configured to generate the second page based on the second monitored object, the second value, and a development method corresponding to a development frame of the second page, where the second page includes the second monitored object and the second value.
Optionally, the page processing apparatus further includes: an object storage unit configured to store the second interception object and the second value based on a development method corresponding to a development frame of the second page.
Optionally, the object storage unit is further configured to: determining a page link deserialization method corresponding to a development frame of the second page based on a preset second adaptation packet, wherein the page link deserialization methods corresponding to different development frames are stored in the second adaptation packet; and deserializing the second monitoring object and the second value based on a page link deserializing method corresponding to the second page, and storing the deserialized second monitoring object and second value.
Optionally, the storage unit is configured to: responding to the on state of a preset updating switch, and storing the first monitoring object and the first value into a preset object space; and responding to the state that the updating switch is in a closed state, caching the first monitoring object and the first value to a preset caching space until the updating switch is turned on, and storing the first monitoring object and the first value to the object space.
According to a third aspect of an embodiment of the present disclosure, there is provided an electronic apparatus including: a processor; a memory for storing the processor-executable instructions, wherein the processor-executable instructions, when executed by the processor, cause the processor to perform a page processing method according to an exemplary embodiment of the present disclosure.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium, in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform a page processing method according to exemplary embodiments of the present disclosure.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product comprising computer instructions which, when executed by a processor, implement the page processing method according to exemplary embodiments of the present disclosure.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
the page link can be generated by monitoring the page action related to the monitored object and storing the monitored object and the assignment of the page action to the monitored object, so that the generated page link can carry information of the monitored object and the value of the monitored object, the monitored object and the value of the monitored object can be acquired through the page link, and particularly, the operation data of the sharer on the page to the monitored object can be acquired.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
Fig. 1 is a scene diagram illustrating an implementation of a page processing method according to an exemplary embodiment.
FIG. 2 is a flowchart illustrating steps of generating a first page link of a page processing method according to an exemplary embodiment.
Fig. 3 is a schematic diagram illustrating an implementation architecture of a page processing method according to an exemplary embodiment.
FIG. 4 is a flowchart illustrating steps of a page processing method to store a first snooping object and a first value in accordance with an exemplary embodiment.
Fig. 5 is a flowchart illustrating a step of generating a second page of a page processing method according to an exemplary embodiment.
FIG. 6 is a flowchart illustrating steps of a page processing method to store a second snooping object and a second value in accordance with an example embodiment.
FIG. 7 is a diagram illustrating an example of a page processing method in accordance with an illustrative embodiment.
Fig. 8 is a block diagram illustrating a page processing apparatus according to an example embodiment.
FIG. 9 is a block diagram of an electronic device shown in accordance with an example embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the disclosure, as detailed in the appended claims.
In this case, the expression "at least one of the items" in the present disclosure means a case where three types of parallel expressions "any one of the items", "a combination of any plural ones of the items", and "the entirety of the items" are included. For example, "include at least one of a and B" includes the following three cases in parallel: (1) comprises A; (2) comprises B; and (3) comprises A and B. For another example, "at least one of step one and step two is performed", which means the following three parallel cases: (1) executing the step one; (2) executing the step two; and (3) executing the step one and the step two.
As described above, in the related page sharing method, there is a limitation in data restoration in a page opened by a third party, and operation data of a sharer on the page cannot be obtained.
Specifically, in a scene that a user browses a page, the user often wants to share some links across local and client sides, and when the user opens the page through link sharing, the page contains some states operated by a sharer, especially some filled forms or options and the like, so that the user experience can be improved, and the efficiency and accuracy of information sharing propagation can be improved.
In order to achieve the purpose, the information to be carried needs to be serialized into a page link for storage by using a specification and a parsing technology of a Uniform Resource Identifier (URI) parameter. However, if manual intervention is adopted, manual addition can be performed at all places where the function is needed, and the method causes management difficulty, redundant development and the like in the architecture of a large website.
Here, a URI refers to a string used to identify the name of an internet resource, which allows a user to interact with any resource (including local and internet) via a particular protocol. The URI is defined by a scheme that includes a deterministic syntax and associated protocols.
In addition, with the basic browser URL specification, although data transfer can be achieved, there are problems of specification and management in saving and restoring data, and data duplication and even coverage are caused to be confused due to non-uniform management.
In addition, in a specific application scenario, not only the data is restored, but also an association relationship between the data and the page display exists. If the realization modes of the pages are different, different modes are needed for adaptation, and if a unified scheme is used for standardizing the process, the whole link can be more smooth, higher safety is obtained, and the development efficiency and quality can also be improved.
In view of the above problems, the present disclosure proposes a page processing method, a page processing apparatus, an electronic device, a computer-readable storage medium, and a computer program product, which are capable of solving at least part of the above problems.
A page processing method according to an exemplary embodiment of the present disclosure will be described below first with reference to fig. 1 to 7. Fig. 1 is a scene diagram of an implementation of a page processing method according to an exemplary embodiment.
Referring to fig. 1, a first user may access a first page using a client such as a browser, APP, etc. at a first user terminal (e.g., a first cell phone 111, a first desktop computer 112, a first tablet computer 113, etc.), and may perform an operation on the first page, such as inputting information on the page, etc. The first user may send a first page link of the first page to a second user holding a second user terminal (e.g., second cell phone 131, second desktop computer 132, second tablet computer 133, etc.) through network 120. The second user may receive the first page link at the second user terminal and open the first page link using a client, such as a browser, APP, to display a first page that the first user wishes to share.
Here, in the process of generating the first page link, the first user terminal may monitor a page action related to a first monitored object preset in the first page, where the page action is used to assign a value to the first monitored object; the first user terminal may store a first snooping object and a first value assigned to the first snooping object by the page action, and may generate a first page link based on the first snooping object and the first value, for restoring the first page based on the first page link, where the restored first page includes the first snooping object and the first value.
The first page link generated according to the method may carry information of the first monitored object and the value thereof, so that when the second user opens the page link, the first monitored object and the value thereof may be acquired, and specifically, the operation data of the first user on the first page on the first monitored object may be acquired.
Here, it should be noted that the terms "first" and "second" are merely used for convenience of description and are not used to distinguish or limit the described objects, for example, the first user and the second user may be the same user or different users, the first user terminal and the second user terminal may be the same user terminal or different user terminals, and for example, the same user may perform an operation of generating the first page link and an operation of opening the generated first page link on the same user terminal.
FIG. 2 is a flowchart illustrating steps of generating a first page link of a page processing method according to an exemplary embodiment. Here, as described above, the page processing method according to the present disclosure may generate the page link by monitoring the page action related to the monitored object, and storing the monitored object and the assignment of the page action to the monitored object, so that the generated page link may carry information of the monitored object and the value thereof, so that when a third party opens the page link, the monitored object and the value thereof may be obtained, and specifically, the operation data of the sharer on the page for the monitored object may be obtained.
Specifically, as shown in fig. 2, the page processing method may include the following steps:
in step S21, a page action related to a first interception object preset in the first page may be intercepted.
By way of example, a page may be used to interact with a user and may display information as well as for the user to input information. Each page may have a corresponding page link to browse the page by accessing the page link. For example, pages may be opened, such as by a browser, an Application (APP), and page links may be in the form of URLs, for example.
One or more first monitoring objects can be preset in the first page, for example, the first monitoring object can be registered during development, and when the first page is opened, page actions related to the first monitoring object will be monitored. By way of example, the first listening object may include, but is not limited to, elements such as text, images, tables, hyperlinks, etc. in the first page, for example.
The page action can be used to assign a value to the first snooping object, e.g., the first value that can be assigned to the first snooping object. The page action may be any operation performed by the user on the first interception object, such as modifying the display state of the first interception object (e.g., text, picture), entering information in the first interception object (e.g., search box, table), and so on. These page actions may be dynamic, and the user may perform multiple operations on the same snooping object, so that the value of the snooping object is changed multiple times, and these page actions may all be snooped.
According to an exemplary embodiment of the present disclosure, a page action related to a preset first interception object in a first page may be intercepted by recording a data operation related to the first interception object.
As an example, listening for page actions may be implemented using browser URI analysis and processing techniques. For example, the first interception object may be a deep link (Deeplink) object, and accordingly, a Proxy object Proxy mechanism may be utilized to intercept a page action related to the first interception object preset in the first page.
While the Deeplink technology is a technology for directly reaching a content page by calling up an App through a browser, according to an exemplary embodiment of the disclosure, the monitoring of page actions can be realized by using an agent technology carried by an existing browser, so that the page monitoring can be simply and conveniently realized, and the efficiency of page processing is improved.
For example, the Proxy function of ECMAScript 6 (abbreviated as ES 6) object can be used to implement control right in data acquisition and page update, and produce a first snooping object set subject to snooping, and the function will complete the specified action when the first snooping object set assigns and takes values. However, the manner of implementing snooping is not limited to the above example, and any other snooping scheme may also be adopted, for example, a separate snooping module may be designed for the first snooping object.
In step S22, the first snooping object and the first value to which the page action is assigned to the first snooping object may be stored.
As an example, a first snooping object and a corresponding first value may be stored based on a development method corresponding to a development framework of a first page. Different development frames may be employed in developing the page, which may include, for example, but are not limited to, javaScript, HTML5, python, and the like. Different development frames correspond to different development methods, and thus the first snooping object and its first value may be stored according to the development method with the first page.
By way of example, fig. 3 is a schematic diagram illustrating an implementation architecture of a page processing method according to an exemplary embodiment. As shown in fig. 3, when a page action for a first snooping object is snooped, a specified action may be implemented by an adaptation packet of an adaptation layer to complete snooping and takeover of the snooping object, and all the snooping objects are stored and managed using a memory space (e.g., an object space in fig. 3). Here, the adaptation layer may have an Application Programming Interface (API), and different storage manners of the first monitored object may be implemented through the API of the adaptation layer according to actual needs.
As an example, as shown in fig. 4, the step of storing the first snooping object and the first value assigned to the first snooping object by the page action may include:
in step S41, a page link serialization method corresponding to the development frame of the first page may be determined based on a preset first adaptation package. Here, the first adaptation packet may have stored therein page link serialization methods corresponding to different development frames.
The page link serialization method may be a method for serializing information in a page into a page link. During page development, a page link serialization method is specified for generating page links. For example, the information in the page may be encoded as a compressed string and written as a parameter into the URL address, and when the URL address is accessed, the information in the page may be restored by deserializing the compressed string.
As an example, as shown in fig. 3, a first adaptation package may be generated according to a page link serialization method in a commonly used page development frame, and when a URL address (e.g., page link serialization) is backfilled and a URL address is read (e.g., page link deserialization), both may be implemented by selecting a URL processing method under the development frame from the first adaptation package according to the development frame of the page.
According to the exemplary embodiment of the disclosure, by presetting the first adaptation package, different page development frames and systems can be targeted, methods in the adaptation package can be flexibly added, a uniform interface is provided for the outside, serialization and deserialization of data and URLs are completed in an adaptation mode through the scheme of the development frame, and a complete instruction method is given to the core package, so that the purpose of executing takeover when a user modifies an adaptation package output object is achieved.
In step S42, the first snooping object and the first value may be serialized based on a page link serialization method corresponding to the first page, and the serialized first snooping object and the first value may be stored.
For example, as shown in fig. 3, when a page action is monitored, for example, a change of a form state, a component state, or the like is monitored, a URL processing method under a development framework corresponding to a page may be used to serialize and store a first monitor object and a first value into an object space, so as to dynamically update the value of the first monitor object according to a page operation. Here, values can be stored into the object space through the update API.
As described above, different adaptation modes can be implemented for different website development frameworks based on a preset adaptation package, so that the operation data and the page display can be communicated with each other, thereby implementing serialization conversion from page representation to page link and storing serialized monitor objects and values thereof, so as to facilitate finally achieving the purpose of deeply restoring the page via the page link.
Further, according to an exemplary embodiment of the present disclosure, an update switch for turning on and off an update (or assignment) of a value of the first interception object may be preset.
As an example, in the process of storing the first interception object and the first value thereof, in response to a preset update switch being in an on state, the first interception object and the first value may be stored to a preset object space; in response to the update switch being in the off state, the first snooping object and the first value may be cached in a preset cache space until the update switch is turned on, and the first snooping object and the first value are stored in the object space.
In particular, as shown in fig. 3, an update switch that is manually or automatically turned on and off may be provided at the proxy layer, since some scenarios do not require real-time synchronization of the first snooping object, e.g., a state that needs to be committed once to be really a page, the assignment of the page action performed before commit may not be stored, in which case the real-time synchronization function of the first snooping object needs to be turned off, but the first snooping object and its first value are temporarily stored through the provided cache API. Until at commit time, the objects in the cache space are stored into the object space and can be synchronized to the URL address. Therefore, the updating switch interface for bi-directionally binding the data and the page link can be added, more complete scene customization can be accepted, the updating switch is opened or closed according to the requirements of a user, the redundant work can be better reduced, and the development and management efficiency is improved.
The object space may be a memory space for storing a first monitored object, as shown in fig. 3, a plurality of first monitored objects, such as key1, key2, key3, etc., may be preset in the object space, the first monitored objects may be data objects that are uniformly registered when a website is developed, the name of the first monitored object may have uniqueness, and in a page that needs to be used, the objects may be allocated to a form according to the name. Therefore, in the whole site development stage, uniform abstract management can be performed on the content needing deep recovery, the binding relationship between the data object and the URL is established, mutual conversion between the memory object and the URL can be realized, and the problem of confusion caused by data repetition and even coverage due to lack of uniform management is solved.
In step S23, a first page link may be generated based on the first snooping object and the first value, for restoring the first page based on the first page link, where the restored first page includes the first snooping object and the first value.
For example, the first monitored object and the first value may be used as a URI to generate a first page link, so that the first page link may be sent to a third party user, and the third party user may restore the first monitored object and the first value in the first page by opening the first page link carrying information of the first monitored object and the first value.
As described above, according to the exemplary embodiments of the present disclosure, dynamic registration and collection of operation data that a user thinks to share or carry can be achieved, and the conversion of the URI of the data and the page link is achieved by monitoring the user behavior through the proxy. In addition, according to the exemplary embodiment of the disclosure, an adaptation package (which may also be referred to as a "plug-in package") in the same way as the current page development can be provided to open up data updating and page display, and automation and normalization of the whole process can be realized. In addition, the adaptation layer can be designed for the development frame of the page, so that the requirements of more development frames can be met, and the adaptation package can be expanded in the adaptation layer according to the actual application requirements.
The above describes a process of generating a page link based on the page actions of the monitored user, and a restored page may be loaded based on the page link generated according to the method, and the following describes a process of loading a page based on the generated page link with reference to fig. 5 and 6.
Fig. 5 is a flowchart illustrating a step of generating a second page of a page processing method according to an exemplary embodiment. As shown in fig. 5, the page processing method may further include:
in step 51, a second page link of the second page to be generated may be obtained, where the second page link specifies a second monitored object and a second value of the second monitored object.
Here, the second page link may be a page link generated by the page processing method described above, and accordingly, the second page link carries the second monitored object and the second value thereof. The second page may be a page to be generated by a browser or APP for opening a link to the second page.
In step 52, a second page may be generated based on the second snooping object, the second value, and a development method corresponding to the development framework of the second page, where the second page includes the second snooping object and the second value.
In this step, a second page may be generated according to a development method corresponding to a development frame of the second page, and the second snooping object and the second value may be displayed in the second page.
Therefore, according to the exemplary embodiment of the disclosure, on one hand, the content modified by the user can be packaged into the page link in real time or in an ordered manner, and on the other hand, when the page is loaded, the second value carried by the page link can be synchronized to the second monitoring object in the object space and displayed on the second page according to the registered second monitoring object, so that the shared content can be completely restored to a form/chart and other places, the scene restoration is realized, the user experience is improved, and the efficiency and the accuracy of information sharing propagation are improved.
In addition, according to an exemplary embodiment of the present disclosure, after a second page link shared from a sharer is opened, a second snooping object and a second value carried in the second page link may be stored into a local object space.
Specifically, the second snooping object and the second value may be stored based on a development method corresponding to a development framework of the second page. In this way, by storing the second interception object and the second value, the second interception object and the second value can be stored locally, so that the page action of the interception user can be continued on the basis of the second page, the content in the second page is updated, and a new page link can be generated quickly based on the updated content.
As an example, as shown in fig. 6, the step of storing the second snooping object and the second value includes:
in step S61, a page link deserialization method corresponding to the development frame of the second page may be determined based on a preset second adaptation packet. Here, the second adaptation package stores therein page link deserialization methods corresponding to different development frames.
The page link deserialization method may be a method for deserializing information in a page link into a page. During the page development process, a page link deserialization method is specified for generating a page. For example, the compressed strings in the page links may be deserialized to restore the information in the page.
In step S62, the second snooping object and the second value may be deserialized based on a page link deserialization method corresponding to the second page, and the deserialized second snooping object and the second value may be stored.
For example, as shown in fig. 3, when the second page link is opened, the second snooping object and the second value may be deserialized and stored into the object space using a URL processing method under the development framework corresponding to the second page. Here, values can be stored into the object space through the update API.
As described above, different adaptation modes can be implemented for different website development frames based on a preset adaptation package, so that the operation data and the page display can be communicated with each other, thereby implementing deserialization conversion from page link to page presentation, and implementing the purpose of deeply restoring the page.
As described above, in one aspect, the operational data of the user may be synchronized into the page links by monitoring page actions; on the other hand, based on the page link generated according to the method, the monitored object and the value thereof carried in the page link can be acquired, so that when the page link is opened, a page containing the monitored object and the value thereof can be generated, and thus, deep restoration of the operation data of the user in the page is realized, and the operation data expected to be shared by the user cannot be omitted.
FIG. 7 is a diagram illustrating an example of a page processing method in accordance with one illustrative embodiment. As shown in fig. 7, a page may be generated based on development code, where the page includes a first component area and a second component area, and each component area includes a plurality of listening objects, such as "analysis method", "selection index", "packet aggregation", "query result", and so on. The user can perform a page action in the page to assign values to these snooping objects, for example, in the first component area, for "analysis method", the value "component comparison" can be clicked in the values "component comparison" and "double difference"; in the second component area, for "query results," the value "resultancy" may be selected.
According to the page processing method of the exemplary embodiment of the present disclosure, the above-mentioned page action may be monitored, and a monitored object and a value thereof related to the page action may be stored, so that a URL address may be generated based on the stored monitored object and the value thereof, where, as shown in fig. 7, selection interactions in both the first component area and the second component area may be synchronized to the URL address.
The generated URL address may be shared with another client, and when the client opens the URL address, the client may read the snooping object and the value thereof carried in the URL address, so as to directly restore the page based on the snooping object and the value thereof, as shown in fig. 7, where the restored page (the page in the lower part of fig. 7) has the same state as the originally shared page (the page in the upper part of fig. 7).
As can be seen from the above examples, by using the page processing method according to the exemplary embodiment of the present disclosure, in a scene where deep restoration of a page is required, a bidirectional binding proxy technology of operation data and a page link is combined, so that a set of complete development and use technical solutions for restoring a page data sharing scene is implemented, the problems of dispersed component states and difficulty in maintenance in a page are solved, deep restoration of a sharing state is implemented, and efficiency and stability of an implementation process of the method are improved.
Fig. 8 is a block diagram illustrating a page processing apparatus according to an example embodiment. Referring to fig. 8, the apparatus includes a listening unit 100, a storage unit 200, and a generating unit 300.
The listening unit 100 is configured to listen for a page action related to a first listening object preset in the first page, where the page action is used to assign a value to the first listening object.
The storage unit 200 is configured to store a first snooping object and a first value to which a page action is assigned to the first snooping object.
The generating unit 300 is configured to generate a first page link based on the first snooping object and the first value, for restoring the first page based on the first page link, wherein the restored first page link includes the first snooping object and the first value.
Optionally, the first interception object is a deep link object, where intercepting a page action related to a preset first interception object in the first page includes: and monitoring page actions related to a preset first monitoring object in the first page through recording data operations related to the first monitoring object.
Optionally, the storage unit 200 is further configured to: determining a page link serialization method corresponding to a development frame of a first page based on a preset first adaptation package, wherein the page link serialization methods corresponding to different development frames are stored in the first adaptation package; and serializing the first monitoring object and the first value based on a page link serialization method corresponding to the first page, and storing the serialized first monitoring object and the first value.
Optionally, the page processing apparatus further includes: the acquisition unit is configured to acquire a second page link of a second page to be generated, wherein the second page link specifies a second monitoring object and a second value of the second monitoring object; and the page generating unit is configured to generate a second page based on the second monitoring object, the second value and a development method corresponding to a development frame of the second page, wherein the second page comprises the second monitoring object and the second value.
Optionally, the page processing apparatus further includes: an object storage unit configured to store a second interception object and a second value based on a development method corresponding to a development frame of a second page.
Optionally, the object storage unit is further configured to: determining a page link deserialization method corresponding to a development frame of a second page based on a preset second adaptation packet, wherein the page link deserialization methods corresponding to different development frames are stored in the second adaptation packet; and deserializing the second monitoring object and the second value based on a page link deserializing method corresponding to the second page, and storing the deserialized second monitoring object and second value.
Optionally, the storage unit 200 is configured to: responding to the on state of a preset updating switch, and storing a first monitoring object and a first value into a preset object space; and responding to the closing state of the updating switch, caching the first monitoring object and the first value in a preset cache space until the updating switch is opened, and storing the first monitoring object and the first value in an object space.
With regard to the apparatus in the above-described embodiment, the specific manner in which each unit performs the operation has been described in detail in the embodiment related to the method, and will not be described in detail here.
FIG. 9 is a block diagram illustrating an electronic device in accordance with an example embodiment. As shown in fig. 9, the electronic device 10 includes a processor 101 and a memory 102 for storing processor-executable instructions. Here, the processor-executable instructions, when executed by the processor, cause the processor to perform the page processing method as described in the above exemplary embodiments.
By way of example, the electronic device 10 need not be a single device, but can be any collection of devices or circuits capable of executing the above instructions (or sets of instructions) either individually or in combination. The electronic device 10 may also be part of an integrated control system or system manager, or may be configured as a server that interfaces with local or remote (e.g., via wireless transmission).
In the electronic device 10, the processor 101 may include a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a programmable logic device, a dedicated processor system, a microcontroller, or a microprocessor. By way of example and not limitation, processor 101 may also include analog processors, digital processors, microprocessors, multi-core processors, processor arrays, network processors, and the like.
The processor 101 may execute instructions or code stored in the memory 102, wherein the memory 102 may also store data. The instructions and data may also be transmitted or received over a network via a network interface device, which may employ any known transmission protocol.
Memory 102 may be integrated with processor 101, e.g., with RAM or flash memory disposed within an integrated circuit microprocessor or the like. Further, memory 102 may comprise a stand-alone device, such as an external disk drive, storage array, or any other storage device usable by a database system. The memory 102 and the processor 101 may be operatively coupled or may communicate with each other, such as through an I/O port, a network connection, etc., so that the processor 101 can read files stored in the memory 102.
In addition, the electronic device 10 may also include a video display (such as a liquid crystal display) and a user interaction interface (such as a keyboard, mouse, touch input device, etc.). All components of the electronic device 10 may be connected to each other via a bus and/or a network.
In an exemplary embodiment, there may also be provided a computer-readable storage medium, in which instructions, when executed by a processor of a server, enable the server to perform the page processing method as described in the above exemplary embodiment. The computer readable storage medium may be, for example, a memory comprising instructions that, optionally, may be: read-only memory (ROM), random-access memory (RAM), random-access programmable read-only memory (PROM), electrically erasable programmable read-only memory (EEPROM), dynamic random-access memory (DRAM), static random-access memory (SRAM), flash memory, non-volatile memory, CD-ROM, CD-R, CD + R, CD-RW, CD + RW, DVD-ROM, DVD-R, DVD-RW, DVD + RW, DVD-RAM, BD-ROM, BD-R LTH, BD-RE, blu-ray or optical disk memory, hard Disk Drive (HDD), solid State Disk (SSD), card memory (such as a multimedia card, a Secure Digital (SD) card or an extreme digital (XD) card), magnetic tape, a floppy disk, a magneto-optical data storage device, an optical data storage device, a hard disk, a solid state disk, and any other device configured to store and provide computer programs and any associated data, data files and data structures in a non-transitory manner to a computer processor or computer such that the computer programs and any associated data processors or computer programs and computer programs are executed. The computer program in the computer-readable storage medium described above can be run in an environment deployed in a computer device, such as a client, a host, a proxy appliance, a server, or the like, and further, in one example, the computer program and any associated data, data files, and data structures are distributed across networked computer systems such that the computer program and any associated data, data files, and data structures are stored, accessed, and executed in a distributed fashion by one or more processors or computers.
In an exemplary embodiment, a computer program product may also be provided, which includes computer instructions that, when executed by a processor, implement the page processing method as described in the above exemplary embodiments.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A page processing method is characterized by comprising the following steps:
monitoring page actions related to a first monitored object preset in a first page, wherein the page actions are used for assigning values to the first monitored object;
storing a first value assigned to the first snooping object by the first snooping object and the page action;
and generating a first page link based on the first monitored object and the first value, so as to restore a first page based on the first page link, wherein the restored first page comprises the first monitored object and the first value.
2. The page processing method according to claim 1, wherein the first interception object is a deep link object, and wherein the intercepting a page action related to a preset first interception object in the first page comprises:
and monitoring page actions related to a preset first monitoring object in a first page by recording data operations related to the first monitoring object.
3. The page processing method according to claim 1, wherein the storing the first snooping object and the first value assigned to the first snooping object by the page action comprises:
determining a page link serialization method corresponding to a development frame of the first page based on a preset first adaptation package, wherein page link serialization methods corresponding to different development frames are stored in the first adaptation package;
serializing the first monitored object and the first value based on a page link serialization method corresponding to the first page, and storing the serialized first monitored object and the first value.
4. The page processing method according to claim 1, characterized in that the page processing method further comprises:
acquiring a second page link of a second page to be generated, wherein a second monitoring object and a second value of the second monitoring object are specified in the second page link;
and generating the second page based on the second monitoring object, the second value and a development method corresponding to a development frame of the second page, wherein the second page comprises the second monitoring object and the second value.
5. The page processing method according to claim 4, characterized in that the page processing method further comprises:
and storing the second monitoring object and the second value based on a development method corresponding to a development frame of the second page.
6. The page processing method according to claim 5, wherein the storing the second snooping object and the second value based on the development method corresponding to the development framework of the second page comprises:
determining a page link deserialization method corresponding to a development frame of the second page based on a preset second adaptation packet, wherein the page link deserialization methods corresponding to different development frames are stored in the second adaptation packet;
and deserializing the second monitoring object and the second value based on a page link deserializing method corresponding to the second page, and storing the deserialized second monitoring object and the second value.
7. The page processing method according to claim 1, wherein the storing the first snooping object and the first value assigned to the first snooping object by the page action based on the development method corresponding to the development frame of the first page comprises:
responding to the on state of a preset updating switch, and storing the first monitoring object and the first value into a preset object space;
and responding to the state that the updating switch is in a closed state, caching the first monitoring object and the first value to a preset caching space until the updating switch is turned on, and storing the first monitoring object and the first value to the object space.
8. A page processing apparatus, characterized in that the page processing apparatus comprises:
the monitoring unit is configured to monitor a page action related to a first monitored object preset in a first page, wherein the page action is used for assigning a value to the first monitored object;
a storage unit configured to store the first snooping object and a first value assigned to the first snooping object by the page action;
a generating unit configured to generate a first page link based on the first snooping object and the first value, so as to restore a first page based on the first page link, wherein the restored first page contains the first snooping object and the first value.
9. An electronic device, characterized in that the electronic device comprises:
a processor;
a memory for storing the processor-executable instructions,
wherein the processor-executable instructions, when executed by the processor, cause the processor to perform the page processing method of any of claims 1 to 7.
10. A computer-readable storage medium, wherein instructions in the computer-readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the page processing method of any of claims 1 to 7.
CN202211268093.7A 2022-10-17 2022-10-17 Page processing method and device, electronic equipment and storage medium Pending CN115495680A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211268093.7A CN115495680A (en) 2022-10-17 2022-10-17 Page processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211268093.7A CN115495680A (en) 2022-10-17 2022-10-17 Page processing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115495680A true CN115495680A (en) 2022-12-20

Family

ID=84473666

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211268093.7A Pending CN115495680A (en) 2022-10-17 2022-10-17 Page processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115495680A (en)

Similar Documents

Publication Publication Date Title
US9420034B2 (en) Providing services to multiple tenants of an application
US8959483B2 (en) Test framework of visual components in a multitenant database environment
CN103491169B (en) Method and system for uploading and downloading files
US20170060562A1 (en) System for developing, testing, deploying, and managing applications in real-time
US8543713B2 (en) Computing environment arranged to support predetermined URL patterns
CN103699674B (en) Webpage preservation, webpage deployment method and device and Web browsing system
US11151098B2 (en) Enabling multi-tenant access to respective isolated data sets organized using different application schemas
US9146841B2 (en) Proxy server assisted product testing
CN108932332A (en) The loading method and device of static resource
US20160179789A1 (en) Content localization using fallback translations
US9519699B1 (en) Consistency of query results in a distributed system
CN112632919B (en) Document editing method and device, computer equipment and storage medium
US20170004221A1 (en) Establishment of state representation of a web page represented in a web browser
US10587714B1 (en) Method for aggregating distributed data
CN103858121A (en) Method and system for making Web application obtain database change
CN111010364A (en) System for offline object-based storage and simulation of REST responses
US10289617B2 (en) Accessing on-premise and off-premise datastores that are organized using different application schemas
CN112035555B (en) Information display method, device and equipment
US10827035B2 (en) Data uniqued by canonical URL for rest application
CN110096543B (en) Data operation method, device, server and medium of application program
US20080065679A1 (en) Method for rules-based drag and drop processing in a network environment
CN115495680A (en) Page processing method and device, electronic equipment and storage medium
US11657064B2 (en) Componentized dashboards
US10089322B2 (en) Portable electronic device, method for sharing file between multiple operating systems, recording medium and computer program product
CN113591000A (en) Browser engine switching method, device and 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