CN110717133A - Page updating method and device, terminal equipment and storage medium - Google Patents

Page updating method and device, terminal equipment and storage medium Download PDF

Info

Publication number
CN110717133A
CN110717133A CN201910859765.3A CN201910859765A CN110717133A CN 110717133 A CN110717133 A CN 110717133A CN 201910859765 A CN201910859765 A CN 201910859765A CN 110717133 A CN110717133 A CN 110717133A
Authority
CN
China
Prior art keywords
page
updated
content
updating
storage area
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
CN201910859765.3A
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 Urban Network Neighbor Information Technology Co Ltd
Beijing City Network Neighbor Technology Co Ltd
Original Assignee
Beijing City Network Neighbor 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 City Network Neighbor Technology Co Ltd filed Critical Beijing City Network Neighbor Technology Co Ltd
Priority to CN201910859765.3A priority Critical patent/CN110717133A/en
Publication of CN110717133A publication Critical patent/CN110717133A/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/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Abstract

The invention provides a page updating method, a page updating device, terminal equipment and storage equipment, and relates to the technical field of Internet. The method comprises the following steps: jumping from the first page to a second page according to an operation instruction received by the first page, starting timing, and monitoring whether a specific updating identifier exists in a storage area; storing the content to be updated input in the second page into a storage area corresponding to the specific update identifier, executing a browser backspacing instruction, and returning to the first page; and when the specific updating mark is detected to exist in the storage area, updating the first page according to the content to be updated. The page updating method provided by the embodiment of the invention has good compatibility, is suitable for different systems or different software, and realizes the refreshing of the page content when the browser returns.

Description

Page updating method and device, terminal equipment and storage medium
Technical Field
The present invention relates to the field of internet technologies, and in particular, to a page updating method and apparatus, a terminal device, and a storage medium.
Background
With the internet entering the web2.0 era, Web pages no longer just bear single characters and pictures, but make contents more vivid through various rich media, and provide better use experience for users through software interaction, and the development is realized based on the Web front-end technology.
In the Web front-end development, a page (hereinafter, referred to as an a page) is jumped to another page (hereinafter, referred to as a B page), after some operations are performed on the B page, a browser rollback operation is executed, the B page returns to the a page, the a page executes a pageshow event instruction, and page content refreshing display is performed on the a page.
Disclosure of Invention
The embodiment of the invention provides a page updating method, a page updating device, terminal equipment and a storage medium, and aims to solve the problem that the content of a page cannot be refreshed after a B page is returned to an A page in the prior art.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a page updating method, where the method may include:
jumping from the first page to a second page according to an operation instruction received by the first page, starting timing, and monitoring whether a specific updating identifier exists in a storage area;
storing the content to be updated input in the second page into a storage area corresponding to the specific update identifier, executing a browser backspacing instruction, and returning to the first page;
and when the specific updating mark is detected to exist in the storage area, updating the first page according to the content to be updated.
Optionally, the method further comprises:
and clearing the update identification in the storage area after the first page is updated.
Optionally, the storage area includes a cookie and/or a localStorage, and the content to be updated input in the second page is stored in the storage area corresponding to the specific update identifier, specifically:
and storing the content to be updated input by the second page into the cookie and/or localStorage corresponding to the specific update identifier.
Optionally, the updating the first page according to the content to be updated includes:
adding at least one row on the first page according to the content to be updated, and writing the content to be updated;
or/and
deleting a target object corresponding to the content to be updated on the first page according to the content to be updated;
or/and
and replacing the target object corresponding to the content to be updated on the first page according to the content to be updated.
In a second aspect, an embodiment of the present invention further provides a page updating apparatus, including:
the monitoring module is used for jumping from the first page to the second page according to the operation instruction received by the first page, starting timing and monitoring whether a specific updating identifier exists in the storage area;
the backspacing module is used for storing the content to be updated input in the second page into a storage area corresponding to the specific updating identifier, executing a browser backspacing instruction and returning to the first page;
and the updating module is used for updating the first page according to the content to be updated when the specific updating mark is detected to exist in the storage area.
Optionally, the update module is further configured to:
and clearing the update identification in the storage area after the first page is updated.
Optionally, the storage area comprises a cookie and/or a localStorage, and the rollback module is configured to:
and storing the content to be updated input by the second page into the cookie and/or localStorage corresponding to the specific update identifier.
Optionally, the update module is configured to:
adding at least one row on the first page according to the content to be updated, and writing the content to be updated;
or/and
deleting a target object corresponding to the content to be updated on the first page according to the content to be updated;
or/and
and replacing the target object corresponding to the content to be updated on the first page according to the content to be updated.
In a third aspect, an embodiment of the present invention additionally provides a terminal device, including: a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the page update method as described in the previous first aspect.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when executed by a processor, the computer program implements the steps of the page updating method according to the first aspect.
In the embodiment of the invention, a specific updating mark is written in a storage area of a second page in advance, the first page receives an operation instruction, jumps from the first page to the second page, starts timing and monitors whether the specific updating mark written in advance exists in the storage area; storing the content to be updated input in the second page into a storage area corresponding to the specific update identifier, executing a browser backspacing instruction, and returning to the first page; when detecting that the pre-written update identification exists in the storage area, updating the first page according to the content to be updated, and when the browser backs down, realizing the updating of the page content by detecting the update identification in the storage area, having good compatibility and being suitable for the page refreshing of different systems or different software.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without inventive labor.
FIG. 1 is a flowchart illustrating steps of a page update method according to an embodiment of the present invention;
FIG. 2 is a logical relationship diagram of a first page and a second page in an embodiment of the invention;
FIG. 3 is a schematic diagram of a first page before updating in an embodiment of the present invention;
FIG. 4 is a schematic diagram of a second page provided by the embodiment of the invention;
FIG. 5 is a diagram illustrating a first page after update in an embodiment of the present invention;
FIG. 6(a) is a flowchart illustrating the detailed steps of the B-page write in the embodiment of the present invention;
FIG. 6(b) is a flowchart illustrating the detailed steps of reading the A page in the embodiment of the present invention;
FIG. 7 is a schematic structural diagram of a page update apparatus according to an embodiment of the present invention;
fig. 8 is a schematic hardware structure diagram of a terminal device in the embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The nouns are explained as follows:
and (3) browser rollback: a back button provided in the browser operates or performs a window.
Local refreshing: and under the condition that the whole webpage is not refreshed, refreshing the local content.
Example one
The execution main body is a page updating device and is arranged on terminal equipment, wherein the terminal equipment can be a mobile phone terminal and the like.
Referring to fig. 1, a flowchart illustrating steps of a page updating method according to an embodiment of the present invention is shown.
S101, jumping from a first page to a second page according to an operation instruction received by the first page, starting timing, and monitoring whether a specific updating identifier exists in a storage area;
specifically, the page a is a first page, the page B is a second page, an update identifier is preset in the page B, and the update identifier can be identified by the page a and is used for page update of the page a, fig. 2 is a logic relationship diagram of the first page and the second page in the embodiment of the present invention, as shown in fig. 2, where 201 in the diagram is a page B logic, and 202 is a page a logic.
When an instruction of clicking a message button is received from the page A, the page A is always in a monitoring state, and whether a specific updating identifier exists in a monitoring storage area or not is monitored, wherein the specific updating identifier can be set according to the requirements of users.
It should be noted that the storage area may be a browser cache, that is, a cookie, or sometimes a plurality of cookies thereof, which refers to data stored on a local terminal of a user for identifying and tracking the user identity in some websites, and may also be a local storage, which is not limited in the embodiment of the present invention.
The browser rollback operation is a rollback instruction, such as a window.
S102, storing the content to be updated input in the second page into a storage area corresponding to the specific update identifier, executing a browser backspace instruction, and returning to the first page;
illustratively, on a mobile phone terminal of an IOS system, a browser or an application program is adopted to open an A page for the first time, i.e., the comment list page, i.e., the first page, fig. 3 is a schematic diagram of the first page before updating in the embodiment of the present invention, as shown in fig. 3, when the message button on the page a is clicked, after the browser obtains the instruction of clicking the message button, then jump from page a to page B, i.e. the message page, i.e. the second page, fig. 4 is a schematic diagram of the second page provided by the embodiment of the present invention, as shown in fig. 4, after writing the content to be updated in the message box of the B page, the user clicks the submit button on the page, or a back button on the browser can be clicked, the content to be updated is stored in a storage area corresponding to the specific update identifier, and the browser rollback operation is executed on the B page, namely the browser is rolled back to the A page from the B page.
S103, when the specific updating mark is detected to exist in the storage area, updating the first page according to the content to be updated.
Specifically, when a message leaving button is clicked from the page a, the page a starts to monitor whether a specific update identifier written in advance, for example, a refresh identifier, exists in the storage area, and if it is detected that the specific update identifier exists in the storage area, the first content is updated according to the content to be updated, for example, a piece of comment information is added to the first page.
Illustratively, in some scenarios, a user clicks a default previous page returning button of a browser, and data reloading needs to be performed on a refreshed page, for example, after the user purchases and jumps to a checkout page on a shopping cart page, and after checkout of the user is completed, when the user returns to the shopping cart page through a return key, the user needs to remove purchased commodities, and only remaining commodities which are not purchased are displayed in the shopping cart, but sometimes the commodities are not updated when returning to the shopping cart page.
In the page updating method provided by this embodiment, an update identifier is written in a storage area of a second page in advance, according to an operation instruction received by a first page, the first page is jumped to the second page, timing is started, and whether a specific update identifier written in advance exists in the storage area is monitored; storing the content to be updated input in the second page into a storage area corresponding to the specific update identifier, executing a browser backspacing instruction, and returning to the first page; when detecting that a specific pre-written update identifier exists in the storage area, updating the first page according to the content to be updated, and when the browser backs down, realizing the updating of the page content by detecting the update identifier in the storage area, having good compatibility and being applicable to the page refreshing of different systems or different software.
Example two
The page updating method provided by another embodiment of the present invention is described in detail, and the method provided by the above embodiment is further described in an additional way.
Optionally, the method further comprises:
and clearing the update identification in the storage area after the first page is updated.
After each update, the update identifier in the storage area is deleted, so that the space can be saved, and the subsequent update operation is convenient to perform.
Optionally, the storage area includes a cookie and/or a localStorage, and the content to be updated input in the second page is stored in the storage area corresponding to the specific update identifier, specifically:
and storing the content to be updated input by the second page into the cookie and/or localStorage corresponding to the specific update identifier.
Specifically, if the storage area is a cookie, the content to be updated input by the second page is stored in the cookie corresponding to the specific update identifier, and after the page a receives an instruction to click a message button, the page a is always in a monitoring state, and whether a specific update identifier that can be identified by the page a exists in the cookie is monitored, for example, in this embodiment, the page a always monitors whether a refresh exists in the cookie.
The specific update identifier in the embodiment of the present invention is a cookie identifier, and setcookie ('refresh', value) is set in the cookie in the embodiment of the present invention, where value is content to be updated, and refresh is a self-defined specific update identifier in the cookie, and may also be set by itself as needed.
The procedure for writing a specific update flag in page B is as follows:
as can be seen from the above, refresh is a specific update identifier set on the B page, i.e. a cookie identifier, value is content to be input, i.e. content to be updated, and cookie setcookie ('refresh', value) is a cookie for storing the content to be updated into the cookie;
starting from obtaining an operation instruction, the page A jumps from a first page to a second page, starts timing, monitors a specific update identifier in a storage area, detects the specific update identifier when the second page returns to the first page, if the identifier is detected, the page A executes page update operation, adds the content to be updated in the page B, namely newly added message comments, to a comment list of the page A, and executes a specific program as follows:
Figure BDA0002199375190000081
if the storage area comprises a localStorage, storing the content to be updated input in the second page into the localStorage corresponding to the specific update identifier, starting from the fact that the page a receives an instruction of clicking a message button, the page a is always in a monitoring state, and monitoring whether the localStorage corresponding to the specific update identifier has the specific update identifier which can be identified by the page a, for example, in the embodiment, the page a always monitors whether the localStorage has refresh.
In the embodiment of the invention, a specific update identifier can be written in the cookie, or the specific update identifier can be written in the local storage localStorage, wherein the storage space of each cookie in the cookie is 4k, the storable space of the localStorage is larger, and the problem of insufficient cookie storage space is solved.
The specific implementation steps of writing the specific update identifier in the local storage localStorage are the same as the above-mentioned way of writing the specific update identifier in the cookie, and are not described in detail here.
It should be noted that, in order to ensure the stability of the update, a specific update identifier may be written in both the localStorage and the cookie.
Optionally, the updating the first page according to the content to be updated includes:
adding at least one row on the first page according to the content to be updated, and writing the content to be updated;
or/and
deleting a target object corresponding to the content to be updated on the first page according to the content to be updated;
or/and
and replacing the target object corresponding to the content to be updated on the first page according to the content to be updated.
Specifically, the content to be updated may also be text content, or may also be some operation, which is not specifically limited in the embodiment of the present invention.
Fig. 5 is a schematic diagram of a first page after updating in an embodiment of the present invention, as shown in fig. 5, adding comment content to be written in a comment page, for example, 123456 may be written in one row, or written in two rows, three rows, and the like, or added in a column manner, which is not specifically limited in the embodiment of the present invention, and implements local updating of the first page.
Illustratively, the page A is a shopping list page, the page B is a payment page, the content to be input in the page B is the operation of completing payment, and when the payment operation of the page B is completed, the page B jumps to the page A, the target object corresponding to the shopping list in the page A is deleted, and the page updating is realized.
The replacement of part of the content in the page a is not specifically described in the embodiment of the present invention.
The above updating modes may be implemented individually, or in combination, and may be partially updated or fully updated, and are not specifically limited in the embodiment of the present invention.
On the basis of the embodiment, after jumping from the page B to the page A, a timer is arranged on the page A, the timer starts working after receiving an instruction of a message leaving button, and whether the page A is updated or not is detected every preset time; or, the timer is always in a working state, and whether the page updating is carried out on the page A is detected once every preset time.
Fig. 6(a) is a flowchart of specific steps of writing in a B page in the embodiment of the present invention, and as shown in fig. 6(a), the embodiment of the present invention may be applied to a mobile phone terminal device of an IOS system, for example, a newly developed browser page, or a page added from an original application program, and jump from an a page to a B page, and after receiving a rollback operation instruction, return to the a page, and the specific steps are as follows:
after jumping from the page A to the page B, writing an update identifier in the page B, and executing the following steps:
s201, the page B judges whether the current environment is under the IOS, if so, S202 and S203 are executed; if not, the process is ended. It should be noted that, whether this step is needed or not can be set as required;
s202, after the logic is executed by the page B, the read cookie identification can be identified by writing the page A.
The writing process ends.
Fig. 6(B) is a flowchart of specific steps of reading the page a in the embodiment of the present invention, and as shown in fig. 6(B), after returning to the page a, reading the update flag written in the page B, the following steps are performed:
s203, executing a rollback operation instruction on the page B, and returning to the page A;
s204, after the page A is loaded, judging whether the current environment is under the IOS, if so, executing S205-S208; if not, the process is ended. It should be noted that, whether this step is needed or not can be set as required;
s205, starting a timer; the starting can be manually set all the time or triggered by an operation instruction;
s206, detecting whether the page content is updated once every preset time; for example, whether page content updating is performed is detected every 300 ms;
s207, judging whether cookie identification exists in the page A or not;
and S208, if the cookie mark exists, executing the page refreshing logic, deleting the cookie mark, and if the cookie mark does not exist, not executing the page refreshing logic and ending.
It should be noted that the preset time period is set by a timer, and may be set by itself according to an actual situation, which is not specifically limited in the embodiment of the present invention, and preferably, the preset time is 300 ms.
In the page updating method provided by this embodiment, an update identifier is written in a storage area of a second page in advance, according to an operation instruction received by a first page, the first page is jumped to the second page, timing is started, and whether a specific update identifier written in advance exists in the storage area is monitored; storing the content to be updated input in the second page into a storage area corresponding to the specific update identifier, executing a browser backspacing instruction, and returning to the first page; when detecting that a specific pre-written update identifier exists in the storage area, updating the first page according to the content to be updated, and when the browser backs down, realizing the updating of the page content by detecting the update identifier in the storage area, having good compatibility and being applicable to the page refreshing of different systems or different software.
EXAMPLE III
The page updating apparatus provided in the embodiment of the present invention is used for executing the method provided in the above embodiment.
Referring to fig. 7, a schematic structural diagram of a page updating apparatus in the embodiment of the present invention is shown.
The page updating and testing device of the embodiment of the invention comprises: a listening module 301, a rollback module 302, and an update module 303, wherein:
the monitoring module 301 is configured to jump from a first page to a second page according to an operation instruction received by the first page, start timing, and monitor whether a specific update identifier exists in a storage area;
the rollback module 302 is configured to store the content to be updated input in the second page in the storage area corresponding to the specific update identifier, execute a browser rollback instruction, and return to the first page;
the updating module 303 is configured to update the first page according to the content to be updated when detecting that the specific update identifier exists in the storage area.
The specific manner in which the respective modules perform operations has been described in detail in relation to the apparatus in this embodiment, and will not be elaborated upon here.
According to the page updating device provided by the embodiment, the updating identifier is written in the storage area of the second page in advance, the first page is jumped to the second page according to the operation instruction received by the first page, and timing is started to monitor whether the specific updating identifier written in advance exists in the storage area; storing the content to be updated input in the second page into a storage area corresponding to the specific update identifier, executing a browser backspacing instruction, and returning to the first page; when detecting that a specific pre-written update identifier exists in the storage area, updating the first page according to the content to be updated, and when the browser backs down, realizing the updating of the page content by detecting the update identifier in the storage area, having good compatibility and being applicable to the page refreshing of different systems or different software.
Example four
The device provided by the above embodiment is further described in an additional embodiment of the present invention.
Optionally, the update module is further configured to:
and clearing the update identification in the storage area after the first page is updated.
Optionally, the storage area comprises a cookie and/or a localStorage, and the rollback module is configured to:
and storing the content to be updated input by the second page into the cookie and/or localStorage corresponding to the specific update identifier.
Optionally, the update module is configured to:
adding at least one row on the first page according to the content to be updated, and writing the content to be updated;
or/and
deleting a target object corresponding to the content to be updated on the first page according to the content to be updated;
or/and
and replacing the target object corresponding to the content to be updated on the first page according to the content to be updated.
The specific manner in which the respective modules perform operations has been described in detail in relation to the apparatus in this embodiment, and will not be elaborated upon here.
It should be noted that the respective implementable modes in the embodiment may be implemented individually, or may be implemented in combination in any combination without conflict, and the present invention is not limited thereto.
According to the page updating device of the embodiment, an updating identifier is written in a storage area of a second page in advance, the page is jumped from a first page to a second page according to an operation instruction received by the first page, and timing is started to monitor whether a specific updating identifier written in advance exists in the storage area; storing the content to be updated input in the second page into a storage area corresponding to the specific update identifier, executing a browser backspacing instruction, and returning to the first page; when detecting that a specific pre-written update identifier exists in the storage area, updating the first page according to the content to be updated, and when the browser backs down, realizing the updating of the page content by detecting the update identifier in the storage area, having good compatibility and being applicable to the page refreshing of different systems or different software.
EXAMPLE five
Still another embodiment of the present invention provides a terminal device, configured to execute the method provided in the foregoing embodiment.
Fig. 8 is a schematic diagram of a hardware structure of a terminal device for implementing various embodiments of the present invention.
The terminal device 600 includes but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, a processor 610, and a power supply 611. Those skilled in the art will appreciate that the terminal device configuration shown in fig. 6 does not constitute a limitation of the terminal device, and that the terminal device may include more or fewer components than shown, or combine certain components, or a different arrangement of components. In the embodiment of the present invention, the terminal device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 601 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 610; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 601 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Further, the radio frequency unit 601 may also communicate with a network and other devices through a wireless communication system.
The terminal device provides the user with wireless broadband internet access through the network module 602, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 603 may convert audio data received by the radio frequency unit 601 or the network module 602 or stored in the memory 609 into an audio signal and output as sound. Also, the audio output unit 603 can also provide audio output related to a specific function performed by the terminal apparatus 600 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 603 includes a speaker, a buzzer, a receiver, and the like.
The input unit 604 is used to receive audio or video signals. The input Unit 604 may include a Graphics Processing Unit (GPU) 6041 and a microphone 6042, and the Graphics processor 6041 processes image data of a still picture or video obtained by an image capturing apparatus (such as a camera) in a video capture mode or an image capture mode. The processed image frames may be displayed on the display unit 606. The image frames processed by the graphic processor 6041 may be stored in the memory 609 (or other storage medium) or transmitted via the radio frequency unit 601 or the network module 602. The microphone 6042 can receive sound, and can process such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 601 in case of the phone call mode.
The terminal device 600 further comprises at least one sensor 605, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the luminance of the display panel 6061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 6061 and/or the backlight when the terminal apparatus 600 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the terminal device posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; the sensors 605 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 606 is used to display information input by the user or information provided to the user. The Display unit 606 may include a Display panel 6061, and the Display panel 6061 may be configured by a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 607 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal device. Specifically, the user input unit 607 includes a touch panel 6071 and other input devices 6072. Touch panel 6071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 6071 using a finger, stylus, or any suitable object or accessory). The touch panel 6071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 610, receives a command from the processor 610, and executes the command. In addition, the touch panel 6071 can be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The user input unit 607 may include other input devices 6072 in addition to the touch panel 6071. Specifically, the other input devices 6072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 6071 can be overlaid on the display panel 6061, and when the touch panel 6071 detects a touch operation on or near the touch panel 6071, the touch operation is transmitted to the processor 610 to determine the type of the touch event, and then the processor 610 provides a corresponding visual output on the display panel 6061 according to the type of the touch event. Although in fig. 4, the touch panel 6071 and the display panel 6061 are two independent components to implement the input and output functions of the terminal device, in some embodiments, the touch panel 6071 and the display panel 6061 may be integrated to implement the input and output functions of the terminal device, and this is not limited here.
The interface unit 608 is an interface for connecting an external device to the terminal apparatus 600. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 608 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the terminal apparatus 600 or may be used to transmit data between the terminal apparatus 600 and an external device.
The memory 609 may be used to store software programs as well as various data. The memory 609 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 609 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 610 is a control center of the terminal device, connects various parts of the entire terminal device by using various interfaces and lines, and performs various functions of the terminal device and processes data by running or executing software programs and/or modules stored in the memory 609 and calling data stored in the memory 609, thereby performing overall monitoring of the terminal device. Processor 610 may include one or more processing units; preferably, the processor 610 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 610.
The terminal device 600 may further include a power supply 611 (such as a battery) for supplying power to various components, and preferably, the power supply 611 may be logically connected to the processor 610 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the terminal device 600 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides a terminal device, including: the processor 610, the memory 609, and a computer program stored in the memory 609 and capable of running on the processor 610, where the computer program, when executed by the processor 610, implements each process of the above cheating determination method embodiment, and can achieve the same technical effect, and in order to avoid repetition, it is not described here again.
EXAMPLE six
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when being executed by a processor, the computer program implements each process of the above cheating determination method embodiment, and can achieve the same technical effect, and in order to avoid repetition, the details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A page updating method, characterized in that the method comprises:
jumping from the first page to a second page according to an operation instruction received by the first page, starting timing, and monitoring whether a specific updating identifier exists in a storage area;
storing the content to be updated input in the second page into a storage area corresponding to the specific update identifier, executing a browser backspacing instruction, and returning to the first page;
and when the specific updating mark is detected to exist in the storage area, updating the first page according to the content to be updated.
2. The method of claim 1, further comprising:
and clearing the update identification in the storage area after the first page is updated.
3. The method according to claim 1, wherein the storage area includes a cookie and/or a localStorage, and the storing the content to be updated input in the second page into the storage area corresponding to the specific update identifier specifically includes:
and storing the content to be updated input by the second page into the cookie and/or localStorage corresponding to the specific update identifier.
4. The method according to claim 1, wherein the updating the first page according to the content to be updated comprises:
adding at least one row on the first page according to the content to be updated, and writing the content to be updated;
or/and
deleting a target object corresponding to the content to be updated on the first page according to the content to be updated;
or/and
and replacing the target object corresponding to the content to be updated on the first page according to the content to be updated.
5. A page update apparatus, characterized in that the apparatus comprises:
the monitoring module is used for jumping from the first page to the second page according to the operation instruction received by the first page, starting timing and monitoring whether a specific updating identifier exists in the storage area;
the backspacing module is used for storing the content to be updated input in the second page into a storage area corresponding to the specific updating identifier, executing a browser backspacing instruction and returning to the first page;
and the updating module is used for updating the first page according to the content to be updated when the specific updating mark is detected to exist in the storage area.
6. The apparatus of claim 5, wherein the update module is further configured to:
and clearing the update identification in the storage area after the first page is updated.
7. The apparatus of claim 5, wherein the storage area comprises a cookie and/or a localStorage, and wherein the rollback module is configured to:
and storing the content to be updated input by the second page into the cookie and/or localStorage corresponding to the specific update identifier.
8. The apparatus of claim 5, wherein the update module is configured to:
adding at least one row on the first page according to the content to be updated, and writing the content to be updated;
or/and
deleting a target object corresponding to the content to be updated on the first page according to the content to be updated;
or/and
and replacing the target object corresponding to the content to be updated on the first page according to the content to be updated.
9. A terminal device, comprising: memory, processor and computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, carries out the steps of the page update method according to any one of claims 1 to 4.
10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the page updating method according to any one of claims 1 to 4.
CN201910859765.3A 2019-09-11 2019-09-11 Page updating method and device, terminal equipment and storage medium Pending CN110717133A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910859765.3A CN110717133A (en) 2019-09-11 2019-09-11 Page updating method and device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910859765.3A CN110717133A (en) 2019-09-11 2019-09-11 Page updating method and device, terminal equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110717133A true CN110717133A (en) 2020-01-21

Family

ID=69209817

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910859765.3A Pending CN110717133A (en) 2019-09-11 2019-09-11 Page updating method and device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110717133A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113961858A (en) * 2021-10-18 2022-01-21 广州创乐出海科技有限公司 Commodity page updating method and device, computer equipment and storage medium
CN114579915A (en) * 2022-05-05 2022-06-03 深圳市华曦达科技股份有限公司 Application page content refreshing method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014176895A1 (en) * 2013-04-28 2014-11-06 Tencent Technology (Shenzhen) Company Limited Method, terminal, server and system for page jump
CN109492181A (en) * 2018-10-19 2019-03-19 中国平安财产保险股份有限公司 Method for page jump, device, computer equipment and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014176895A1 (en) * 2013-04-28 2014-11-06 Tencent Technology (Shenzhen) Company Limited Method, terminal, server and system for page jump
CN109492181A (en) * 2018-10-19 2019-03-19 中国平安财产保险股份有限公司 Method for page jump, device, computer equipment and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
JAVASCRIPT9527: "利用localStorage实现浏览器中多个标签页之间的通信", 《HTTPS://WWW.CNBLOGS.COM/JAVASCRIPT9527/P/11344873.HTML》 *
一亩微光: "vue还回上一页的时候传参", 《HTTPS://BLOG.CSDN.NET/U014263809/ARTICLE/DETAILS/86063035》 *
笠航: "localStorage单页面及不同页面监听变动", 《HTTPS://WWW.CNBLOGS.COM/7QIN/P/10196539.HTML》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113961858A (en) * 2021-10-18 2022-01-21 广州创乐出海科技有限公司 Commodity page updating method and device, computer equipment and storage medium
CN114579915A (en) * 2022-05-05 2022-06-03 深圳市华曦达科技股份有限公司 Application page content refreshing method and device

Similar Documents

Publication Publication Date Title
CN109343759B (en) Screen-turning display control method and terminal
CN107846352B (en) Information display method and mobile terminal
CN109194818B (en) Information processing method and terminal
CN109240577B (en) Screen capturing method and terminal
CN109543099B (en) Content recommendation method and terminal equipment
CN108135033B (en) Bluetooth connection method and mobile terminal
CN110196667B (en) Notification message processing method and terminal
CN110099296B (en) Information display method and terminal equipment
CN110659098B (en) Data updating method and device, terminal equipment and storage medium
CN109857297B (en) Information processing method and terminal equipment
CN108616772B (en) Bullet screen display method, terminal and server
CN111030917B (en) Message display method and electronic equipment
CN110049187B (en) Display method and terminal equipment
CN109901761B (en) Content display method and mobile terminal
CN110752981A (en) Information control method and electronic equipment
CN111124706A (en) Application program sharing method and electronic equipment
CN108196781B (en) Interface display method and mobile terminal
CN110012152B (en) Interface display method and terminal equipment
CN110069407B (en) Function test method and device for application program
CN111061446A (en) Display method and electronic equipment
CN110825474A (en) Interface display method and device and electronic equipment
CN110795002A (en) Screenshot method and terminal equipment
CN106339391B (en) Webpage display method and terminal equipment
CN110717133A (en) Page updating method and device, terminal equipment and storage medium
CN109902232B (en) Display control method and terminal

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200121