CN113760404A - Page rollback method, device, equipment and storage medium - Google Patents

Page rollback method, device, equipment and storage medium Download PDF

Info

Publication number
CN113760404A
CN113760404A CN202110124998.6A CN202110124998A CN113760404A CN 113760404 A CN113760404 A CN 113760404A CN 202110124998 A CN202110124998 A CN 202110124998A CN 113760404 A CN113760404 A CN 113760404A
Authority
CN
China
Prior art keywords
page
instance
backspacing
rollback
editing
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
CN202110124998.6A
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 Jingdong Tuoxian Technology Co Ltd
Original Assignee
Beijing Jingdong Tuoxian 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 Jingdong Tuoxian Technology Co Ltd filed Critical Beijing Jingdong Tuoxian Technology Co Ltd
Priority to CN202110124998.6A priority Critical patent/CN113760404A/en
Publication of CN113760404A publication Critical patent/CN113760404A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4482Procedural
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses a page rollback method, a device, equipment and a storage medium, wherein the method comprises the following steps: receiving a page backspacing instruction, and determining a backspacing target page corresponding to the page backspacing instruction; acquiring a backspacing page instance of the backspacing target page, wherein the backspacing page instance is updated by intercepting editing information associated with the backspacing page instance; and generating page display information of the target rollback page according to the rollback page example, and responding to the page rollback instruction based on the page display information. According to the method provided by the embodiment of the invention, the page editing information of the page to be rolled back is intercepted by the agent before the page is rolled back, and the data of the page to be rolled back is updated according to the intercepted page editing information, so that the accuracy of the data during page rolling back is ensured, and the accurate display of the page to be rolled back can be realized without re-requesting the data during page rolling back.

Description

Page rollback method, device, equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a page rollback method, device, equipment and storage medium.
Background
The applet is an application which can be used without downloading and installing, the dream that the application is 'reachable by a touch' is realized, and the user can open the application by scanning or searching. The concept of 'running after running' is also embodied, and a user does not need to be concerned about whether too many applications are installed. The application will be ubiquitous and readily available without installation and uninstallation. The above advantages make the use of applets more and more widespread. The problem of inaccurate data of the returned page is frequently encountered when developing the small program. If the list page jumps to the detail page and then an attribute is modified on the detail page, the returned list page has no updated data, which causes the page data to be abnormal. At present, two methods are generally used for solving the inaccuracy of page rollback data: firstly, a page rollback re-request interface refreshes page data, namely requests the data in a page life cycle onShow; and secondly, storing the list data to the whole, modifying the whole data when modifying in the detail page, and then fetching new data from the whole to update the page when rolling back the page.
In the process of implementing the invention, the inventor finds that at least the following technical problems exist in the prior art: when the page data volume is large, repeated requests cause great performance waste, and the updating delay exists in the weak network; storing the list data to the global easily causes data confusion and is not easy to maintain, the global data is required to be fetched again each time the page is entered, when the data is modified, the data of the current page is modified, the global data is maintained, and redundancy is operated.
Disclosure of Invention
The embodiment of the invention provides a page rollback method, device, equipment and storage medium, which are used for ensuring the accuracy of data during page rollback on the basis of simplifying a processing flow.
In a first aspect, an embodiment of the present invention provides a page rollback method, including:
receiving a page backspacing instruction, and determining a backspacing target page corresponding to the page backspacing instruction;
acquiring a backspacing page instance of a backspacing target page, wherein the backspacing page instance is updated by intercepting edit information associated with the backspacing page instance;
and generating page display information of the target backspacing page according to the backspacing page example, and responding to the page backspacing instruction based on the page display information.
In a second aspect, an embodiment of the present invention further provides a page rollback apparatus, including:
the page back-off determining module is used for receiving a page back-off instruction and determining a back-off target page corresponding to the page back-off instruction;
the page instance obtaining module is used for obtaining a backspacing page instance of a backspacing target page, wherein the backspacing page instance is updated by intercepting edit information associated with the backspacing page instance;
and the rollback page generation module is used for generating page display information of the target rollback page according to the rollback page example and responding to the page rollback instruction based on the page display information.
In a third aspect, an embodiment of the present invention further provides a computer device, where the computer device includes:
one or more processors;
storage means for storing one or more programs;
when executed by one or more processors, cause the one or more processors to implement a page rollback method as provided by any of the embodiments of the present invention.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the page rollback method provided in any embodiment of the present invention.
The embodiment of the invention determines a backspacing target page corresponding to a page backspacing instruction by receiving the page backspacing instruction; acquiring a backspacing page instance of a backspacing target page, wherein the backspacing page instance is updated by intercepting edit information associated with the backspacing page instance, so that the data of the backspacing page is updated by proxy interception before the page is returned; the page display information of the target backspacing page is generated according to the backspacing page example, the page backspacing instruction is responded based on the page display information, and the data of the backspacing page is updated according to the intercepted page editing information, so that the accuracy of the data during page backspacing is ensured, and the accurate display of the backspacing page can be realized without re-requesting the data during page backspacing.
Drawings
Fig. 1 is a flowchart of a page rollback method according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a page rollback method according to a second embodiment of the present invention;
fig. 3a is a schematic view of an application scenario of a page rollback method according to a third embodiment of the present invention;
fig. 3b is a schematic flowchart of a page rollback method according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a page rollback apparatus according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a computer device according to a fifth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a page rollback method according to an embodiment of the present invention. The embodiment can be applied to the situation of page rollback, in particular to the situation of page rollback in an applet. The method may be performed by a page rollback apparatus, which may be implemented in software and/or hardware, for example, and may be configured in a computer device. As shown in fig. 1, the method includes:
s110, receiving a page back-off instruction, and determining a back-off target page corresponding to the page back-off instruction.
In this embodiment, the page back instruction may be an instruction initiated by the user to back to a page previous to the current page. Illustratively, after a user jumps from a page a to a page B on an operation terminal, a page rollback request is triggered by clicking a return control in the page B or by gesture control, and after the operation terminal detects the page rollback request triggered by the user, a page rollback instruction is generated based on page information of the rollback page, and the page rollback instruction is sent to a page rollback device.
After receiving the page rollback instruction, the page rollback instruction may be analyzed to obtain a rollback page identifier of the rollback target page. The rollback page identifier may be an identifier uniquely representing a target rollback page, and may be a number, a name, and the like of the target rollback page.
S120, obtaining a backspacing page instance of the backspacing target page, wherein the backspacing page instance is updated by intercepting the editing information associated with the backspacing page instance.
In the present embodiment, page data is stored by a page instance. The page instance library outwards exposes and adds the page, and the corresponding storage of the page instance and the page identifier is realized by taking the page name and the page instance as parameters. And when the backspacing page instance of the backspacing target page is obtained, taking the page instance corresponding to the page identifier of the backspacing target page as the backspacing page instance. Illustratively, the page name and the page instance may be stored in a page instance library correspondingly, and when the rollback page instance is obtained, the page instance corresponding to the page name of the rollback target page is searched from the page instance library as the rollback page instance.
It should be noted that, in the present embodiment, the rollback page instance is updated based on the interception of the editing information associated therewith. The editing information can be information such as adding, deleting, modifying and the like. Illustratively, each page instance is proxied by using a proxy server, so that the editing operation object of the page is a proxy object of the page instance. The proxy server can be selected according to actual requirements, such as determined according to the development environment, development language and the like of the program. Assuming that a user enters a page B from a page A and edits data of the page A in the page B, after the editing of the page B is completed and before the page A is returned, intercepting the editing information of the page B through a proxy server, and updating a page instance of the page A based on the intercepted editing information, so that accurate page data of the returned page can be obtained before the page is returned.
S130, generating page display information of the target rollback page according to the rollback page example, and responding to the page rollback instruction based on the page display information.
After the accurate backspacing page example is obtained, page display information is generated based on the backspacing page example, the page display information is sent to the operation terminal for displaying, and the accurate backspacing page is displayed for the user. The page display information generation method based on the page rollback example can refer to a page generation method in the prior art, and is not described herein again.
The embodiment of the invention determines a backspacing target page corresponding to a page backspacing instruction by receiving the page backspacing instruction; acquiring a backspacing page instance of a backspacing target page, wherein the backspacing page instance is updated by intercepting edit information associated with the backspacing page instance, so that the data of the backspacing page is updated by proxy interception before the page is returned; the page display information of the target backspacing page is generated according to the backspacing page example, the page backspacing instruction is responded based on the page display information, and the data of the backspacing page is updated according to the intercepted page editing information, so that the accuracy of the data during page backspacing is ensured, and the accurate display of the backspacing page can be realized without re-requesting the data during page backspacing.
Example two
Fig. 2 is a flowchart of a page rollback method according to a second embodiment of the present invention. On the basis of the above embodiment, the present embodiment adds an operation of intercepting editing information by an agent and updating data of a rollback page. Wherein explanations of the same or corresponding terms as those of the above embodiments are omitted. As shown in fig. 2, the page rollback method provided in this embodiment includes the following steps:
s210, according to the received page operation instruction, carrying out proxy on the associated page instance of the associated page of the page operation instruction.
In this embodiment, when a user accesses a page, a page operation instruction is triggered, and after receiving the page operation instruction, the page rollback apparatus determines an associated page associated with the page operation instruction according to the page operation instruction, and adds an associated page instance of the associated page. The associated page instance can be obtained from a page instance library, and a new page instance can be created to serve as the associated page instance.
In one embodiment, proxying associated page instances of associated pages of a page operation instruction includes: the associated page instance is proxied through the proxy server of ES 6. Optionally, each associated page instance may be proxied through the Proxy server Proxy of ES6, so that what is edited through the page instance library is a Proxy object for the page instance. Specifically, taking the example that the data in the page a is edited in the page B after the page a enters the page B, the data in the page a can be edited in the page B through store. And before entering the page A, the page A is intercepted by the proxy server, so that when modification is carried out, an interception function is entered, and the editing information is obtained through the interception function. And displaying the edited information after the information is returned to the page A. It will be appreciated that the editing operation may contain a number of parameters, such as adding name, content, etc. information. In the embodiment, the interception of the editing information can be performed in real time, and the page instance is updated based on the editing information.
In an embodiment of the present invention, proxying an associated page instance of an associated page of a page operation instruction according to a received page operation instruction includes: receiving an initial page operation instruction, determining an initial page of the initial page operation instruction, and proxying an initial page instance of the initial page; receiving a page editing instruction, generating skip information of an editing page, and acting an editing page example of the editing page; correspondingly, intercepting the page editing information of the associated page through the proxy, and updating the associated page instance according to the page editing information, wherein the updating comprises the following steps: and intercepting the editing information of the editing page through the agent so as to update the initial page instance according to the intercepted editing information. Specifically, intercepting the editing information and updating the initial page instance may specifically be: when entering an initial page, adding an initial page instance, and acting the initial page instance through a proxy server; and when the information in the initial page is modified, jumping to the editing page for editing, adding an editing page instance of the editing page, and proxying the editing page instance through a proxy server. After the initial page instance and the editing page instance are both subjected to proxy, the interception of the editing information in the editing page can be realized.
Optionally, before proxying the initial page instance of the initial page, the method further includes: searching whether a storage page example corresponding to the initial page exists in a page example library; if so, taking the storage page instance as an initial page instance; and if not, creating an initial page instance and adding the initial page instance to the page instance library. Optionally, the initial page instance needs to be added before proxying the initial page instance. Optionally, addRoute may be called in onLoad hook function of the initial page to add the initial page instance. Specifically, whether the instance exists in the page instance library or not is judged, if yes, the initial page instance is updated, and otherwise, the new instance is used as the initial page instance.
Correspondingly, before the proxy of the edit page instance of the edit page, the method further includes: searching whether a storage page example corresponding to the editing page exists in a page example library; if so, taking the storage page instance as an editing page instance; and if not, creating an editing page instance, and adding the editing page instance to the page instance library. Optionally, before proxying the edit page instance, the edit page instance needs to be added. Optionally, addRoute may be called in onLoad hook function of the edit page to add an edit page instance. Specifically, whether the instance exists in the page instance library or not is judged, if yes, the edit page instance is updated, and if not, the new instance is built as the edit page instance.
S220, intercepting the page editing information of the associated page through the proxy, and updating the associated page instance according to the page editing information.
Specifically, after the initial page instance and the editing page instance are proxied, editing information in the editing page can be obtained through proxy interception, and the initial page instance is updated based on the editing information.
Optionally, intercepting, by an agent, page editing information of the associated page, includes: and calling a preset method of the initial page through an interception function to intercept page editing information, wherein the preset method is a method for modifying page data. Taking the initial page as the page a as an example, a preset method of the page a may be called to intercept the editing information. The small programs are different in application and different in preset method, and the method is only required to be used when the small programs provide methods for modifying page data. Illustratively, the preset method includes a setDate method, and the intercept function may call the setDate method of the page a to obtain the editing information.
And S230, receiving a page back-off instruction, and determining a back-off target page corresponding to the page back-off instruction.
S240, obtaining a backspacing page example of the backspacing target page.
And S250, generating page display information of the target rollback page according to the rollback page example, and responding to the page rollback instruction based on the page display information.
On the basis of the above embodiment, the present embodiment adds an operation of intercepting editing information by an agent and performing data update operation on a rollback page, and performs an agent on a related page instance of a related page of a page operation instruction according to a received page operation instruction; the agent intercepts the page editing information of the associated page, and updates the associated page instance according to the page editing information, so that the initial page instance is updated through the agent, and the synchronous operation of the page data of the initial page is simplified.
EXAMPLE III
The present embodiment provides a preferred embodiment based on the above-described scheme.
Fig. 3a is a schematic view of an application scenario of a page rollback method according to a third embodiment of the present invention. As shown in fig. 3a, page a is a "my plan list" and includes names of plans and details of contents, and when editing a plan, the user needs to enter page B, i.e., a "plan details page" for editing. If the data in page B is modified, the data cannot be synchronized to page a, which may result in inaccurate display of page a.
Fig. 3b is a flowchart illustrating a page rollback method according to a third embodiment of the present invention. As shown in FIG. 3B, the page stack includes A pages, B pages, C pages, and D pages. The rollback method of each page can be realized by the method provided by the embodiment.
Specifically, a page instance library and a store are created first, the store is used for storing objects of page instances, an add page (addRoute) method is exposed to the outside, parameters are page names and page instances, and the page instances corresponding to the page names can be maintained in the store. When a user enters a page, an addRoute is called in an onLoad hook function of the page to add a page instance, whether the instance exists or not is judged at the moment, if yes, the instance is updated, and if not, the instance is newly built. Each page instance is then proxied through Proxy of ES6, and what later operates through Store modify data is a Proxy object for the page instance. Data used by a page in a certain page modification page stack is directly modified through a store, and all page instances can be taken in the store through page names, such as modifying msg data of an A page: a is an example of an a page, and msg data of the a page is modified by store. After the page instance is proxied, the modification attribute can be intercepted by a setter of the proxy object, setData (applet native api) of the page instance is called in the setter to modify corresponding data, and page updating is triggered. The page is returned to the corresponding page, and since setData has been called before, the page is already updated, and accurate page data is displayed.
The method provided by the embodiment of the invention provides a simple scheme for updating the page data in all the page stacks, can modify any page data in the page stacks, and can ensure a high-performance solution for keeping the data correct when the page is returned after modification under the conditions of large data volume or paging.
Example four
Fig. 4 is a schematic structural diagram of a page rollback apparatus according to a fourth embodiment of the present invention. The page rollback apparatus may be implemented in software and/or hardware, for example, the page rollback apparatus may be configured in a computer device. As shown in fig. 4, the apparatus includes a fallback page determining module 410, a page instance obtaining module 420, and a fallback page generating module 430, where:
the page back-off determining module is used for receiving a page back-off instruction and determining a back-off target page corresponding to the page back-off instruction;
the page instance obtaining module is used for obtaining a backspacing page instance of a backspacing target page, wherein the backspacing page instance is updated by intercepting edit information associated with the backspacing page instance;
and the rollback page generation module is used for generating page display information of the target rollback page according to the rollback page example and responding to the page rollback instruction based on the page display information.
In the embodiment of the invention, a page back instruction is received by a back page determining module, and a back target page corresponding to the page back instruction is determined; the page instance obtaining module obtains a backspacing page instance of a backspacing target page, wherein the backspacing page instance is updated by intercepting edit information associated with the backspacing page instance, so that the data of the backspacing page is updated by proxy interception before the page is returned; the backspacing page generation module generates page display information of a target backspacing page according to a backspacing page example, responds to a page backspacing instruction based on the page display information, and updates data of the backspacing page according to the intercepted page editing information, so that the accuracy of the data during page backspacing is ensured, and the accurate display of the backspacing page can be realized without re-requesting the data during page backspacing.
Optionally, on the basis of the foregoing scheme, the apparatus further includes an instance updating module, including:
the related page proxy unit is used for carrying out proxy on related page instances of related pages of the page operation instruction according to the received page operation instruction;
and the editing information intercepting unit is used for intercepting the page editing information of the associated page through the proxy and updating the associated page instance according to the page editing information.
Optionally, on the basis of the above scheme, the associated page proxy unit includes:
the initial page proxy subunit is used for receiving the initial page operation instruction, determining an initial page of the initial page operation instruction, and proxying an initial page instance of the initial page;
the editing page proxy subunit is used for receiving the page editing instruction, generating skip information of an editing page and proxying an editing page instance of the editing page;
optionally, on the basis of the above scheme, the edit information intercepting unit is specifically configured to:
and intercepting the editing information of the editing page through the agent so as to update the initial page instance according to the intercepted editing information.
Optionally, on the basis of the above scheme, the initial page proxy subunit is specifically configured to:
before proxy is carried out on an initial page example of an initial page, whether a storage page example corresponding to the initial page exists is searched in a page example library;
if so, taking the storage page instance as an initial page instance;
and if not, creating an initial page instance and adding the initial page instance to the page instance library.
Optionally, on the basis of the above scheme, the associated page proxy unit is specifically configured to:
the associated page instance is proxied through the proxy server of ES 6.
Optionally, on the basis of the above scheme, the edit information intercepting unit is specifically configured to:
and calling a preset method of the initial page through an interception function to intercept page editing information, wherein the preset method is a method for modifying page data.
The page rollback device provided by the embodiment of the invention can execute the page rollback method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
EXAMPLE five
Fig. 5 is a schematic structural diagram of a computer device according to a fifth embodiment of the present invention. Fig. 5 is a schematic structural diagram of a computer device according to a sixth embodiment of the present invention. FIG. 5 illustrates a block diagram of an exemplary computer device 512 suitable for use in implementing embodiments of the present invention. The computer device 512 shown in FIG. 5 is only an example and should not bring any limitations to the functionality or scope of use of embodiments of the present invention.
As shown in FIG. 5, computer device 512 is in the form of a general purpose computing device. Components of computer device 512 may include, but are not limited to: one or more processors 515, a system memory 528, and a bus 518 that couples the various system components including the system memory 528 and the processors 515.
Bus 518 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and processor 515 or a local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Computer device 512 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by computer device 512 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 528 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)530 and/or cache memory 532. The computer device 512 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage 534 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 5, and commonly referred to as a "hard drive"). Although not shown in FIG. 5, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 518 through one or more data media interfaces. Memory 528 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 540 having a set (at least one) of program modules 542, including but not limited to an operating system, one or more application programs, other program modules, and program data, may be stored in, for example, the memory 528, each of which examples or some combination may include an implementation of a network environment. The program modules 542 generally perform the functions and/or methods of the described embodiments of the invention.
The computer device 512 may also communicate with one or more external devices 514 (e.g., keyboard, pointing device, display 524, etc.), with one or more devices that enable a user to interact with the computer device 512, and/or with any devices (e.g., network card, modem, etc.) that enable the computer device 512 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 522. Also, computer device 512 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via network adapter 520. As shown, the network adapter 520 communicates with the other modules of the computer device 512 via the bus 518. It should be appreciated that although not shown, other hardware and/or software modules may be used in conjunction with the computer device 512, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processor 515 executes various functional applications and data processing by running programs stored in the system memory 528, for example, implementing a page rollback method provided by an embodiment of the present invention, the method includes:
receiving a page backspacing instruction, and determining a backspacing target page corresponding to the page backspacing instruction;
acquiring a backspacing page instance of the backspacing target page, wherein the backspacing page instance is updated by intercepting editing information associated with the backspacing page instance;
and generating page display information of the target rollback page according to the rollback page example, and responding to the page rollback instruction based on the page display information.
Of course, those skilled in the art can understand that the processor may also implement the technical solution of the page rollback method provided in any embodiment of the present invention.
EXAMPLE six
The sixth embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the page rollback method provided in the sixth embodiment of the present invention, where the method includes:
receiving a page backspacing instruction, and determining a backspacing target page corresponding to the page backspacing instruction;
acquiring a backspacing page instance of the backspacing target page, wherein the backspacing page instance is updated by intercepting editing information associated with the backspacing page instance;
and generating page display information of the target rollback page according to the rollback page example, and responding to the page rollback instruction based on the page display information.
Of course, the computer program stored on the computer-readable storage medium provided by the embodiments of the present invention is not limited to the above method operations, and may also perform the relevant operations of the page rollback method provided by any embodiment of the present invention.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, or the like, as well as conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of 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 the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments illustrated herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A page rollback method is characterized by comprising the following steps:
receiving a page backspacing instruction, and determining a backspacing target page corresponding to the page backspacing instruction;
acquiring a backspacing page instance of the backspacing target page, wherein the backspacing page instance is updated by intercepting editing information associated with the backspacing page instance;
and generating page display information of the target rollback page according to the rollback page example, and responding to the page rollback instruction based on the page display information.
2. The method of claim 1, further comprising:
according to the received page operation instruction, carrying out proxy on an associated page instance of an associated page of the page operation instruction;
intercepting page editing information of an associated page through an agent, and updating the associated page instance according to the page editing information.
3. The method according to claim 2, wherein said proxying associated page instances of associated pages of the page operation instruction according to the received page operation instruction comprises:
receiving an initial page operation instruction, determining an initial page of the initial page operation instruction, and proxying an initial page instance of the initial page;
receiving a page editing instruction, generating skip information of an editing page, and acting an editing page instance of the editing page.
4. The method according to claim 3, wherein the intercepting, by an agent, page editing information of an associated page, and updating the associated page instance according to the page editing information comprises:
and intercepting the editing information of the editing page through an agent so as to update the initial page instance according to the intercepted editing information.
5. The method of claim 3, further comprising, prior to proxying the initial page instance of the initial page:
searching whether a storage page example corresponding to the initial page exists in a page example library;
if so, taking the storage page instance as the initial page instance;
and if the page instance does not exist, creating an initial page instance, and adding the initial page instance to the page instance library.
6. The method of claim 2, wherein said proxying associated page instances of associated pages of the page operation instruction comprises:
the associated page instance is proxied through the proxy server of ES 6.
7. The method of claim 5, wherein intercepting page editing information of an associated page by an agent comprises:
and calling a preset method of an initial page through an interception function to intercept the page editing information, wherein the preset method is a method for modifying page data.
8. A page rollback apparatus, comprising:
the page back-off determining module is used for receiving a page back-off instruction and determining a back-off target page corresponding to the page back-off instruction;
a page instance obtaining module, configured to obtain a fallback page instance of the fallback target page, where the fallback page instance is updated by intercepting editing information associated with the fallback page instance;
and the return page generation module is used for generating page display information of the target return page according to the return page example and responding to the page return instruction based on the page display information.
9. A computer device, the device comprising:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the page rollback method of any of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a page rollback method according to any one of claims 1-7.
CN202110124998.6A 2021-01-29 2021-01-29 Page rollback method, device, equipment and storage medium Pending CN113760404A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110124998.6A CN113760404A (en) 2021-01-29 2021-01-29 Page rollback method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110124998.6A CN113760404A (en) 2021-01-29 2021-01-29 Page rollback method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113760404A true CN113760404A (en) 2021-12-07

Family

ID=78786489

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110124998.6A Pending CN113760404A (en) 2021-01-29 2021-01-29 Page rollback method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113760404A (en)

Similar Documents

Publication Publication Date Title
EP3848824A1 (en) Landing page processing method, apparatus, device and medium
CN112612546A (en) Page loading method and device, electronic equipment and storage medium
CN110990346A (en) File data processing method, device, equipment and storage medium based on block chain
PH12015500034B1 (en) A web browser operation method and system
CN111352644A (en) Applet updating method, device, server and storage medium
CN113760404A (en) Page rollback method, device, equipment and storage medium
CN111596997B (en) UI information request method, device, terminal and storage medium
CN114817803A (en) Page skipping method and device and electronic equipment
CN111741046B (en) Data reporting method, data acquisition method, device, equipment and medium
CN114356290A (en) Data processing method and device and computer readable storage medium
CN110753136B (en) Domain name resolution method, device, equipment and storage medium
CN113110846A (en) Method and device for acquiring environment variable
CN112711602B (en) Method and device for running stored procedure, database system and storage medium
CN112000491A (en) Application program interface calling method, device, equipment and storage medium
CN112988192A (en) Version updating method and device, electronic equipment and storage medium
CN112416422A (en) Development version file submitting method, device, equipment and storage medium
CN111506380A (en) Rendering method, device, equipment and storage medium
CN112394980B (en) Model simulation method, device, equipment and storage medium
CN107045549B (en) Method and device for acquiring page number of electronic book
CN116185412B (en) Data management method and device, electronic equipment and storage medium
CN113535660B (en) Android log storage method and device
CN116400988B (en) Target parameter returning method, storage medium and electronic equipment
CN112445790B (en) Report data storage method, device, equipment and medium
CN112100092B (en) Information caching method, device, equipment and medium
CN111046430B (en) Data processing method and device, storage medium and electronic equipment

Legal Events

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