CN108416011A - A kind of page processing method, device, terminal and computer readable storage medium - Google Patents

A kind of page processing method, device, terminal and computer readable storage medium Download PDF

Info

Publication number
CN108416011A
CN108416011A CN201810177290.5A CN201810177290A CN108416011A CN 108416011 A CN108416011 A CN 108416011A CN 201810177290 A CN201810177290 A CN 201810177290A CN 108416011 A CN108416011 A CN 108416011A
Authority
CN
China
Prior art keywords
page
target
string
target pages
jump
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.)
Granted
Application number
CN201810177290.5A
Other languages
Chinese (zh)
Other versions
CN108416011B (en
Inventor
杨文新
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Life Insurance Company of China Ltd
Original Assignee
Ping An Life Insurance Company of China 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 Ping An Life Insurance Company of China Ltd filed Critical Ping An Life Insurance Company of China Ltd
Priority to CN201810177290.5A priority Critical patent/CN108416011B/en
Publication of CN108416011A publication Critical patent/CN108416011A/en
Application granted granted Critical
Publication of CN108416011B publication Critical patent/CN108416011B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a kind of page processing method, device, terminal and computer readable storage mediums, page processing terminal of the present invention is in single-page application displaying target pages, it is instructed in response to page jump input by user, obtains the page data of the target pages;Application state is extracted from the page data, and corresponding target string is generated according to the application state;It is instructed from the target pages according to the page jump and jumps to jump page;Restore to instruct in response to the page input by user, restore instruction according to the page and is switched to the target pages from the jump page, and the target pages are restored by the target string, user's operation is effectively simplified, user experience is improved.

Description

A kind of page processing method, device, terminal and computer readable storage medium
Technical field
The present invention relates to Internet technical fields more particularly to a kind of page processing method, device, terminal and computer can Read storage medium.
Background technology
Single-page can be a kind of very simple static page of topology layout, and the page structure of single-page is simple, layout is clear It is clear and easy to maintain.And single-page is a kind of special Web applications using (Single-Page Application, SPA), it All activities are confined in a Web page, corresponding HTML (Hyper are only loaded when the Web page initializes Text Markup Language, HyperText Markup Language), JavaScript and CSS (Cascading Style Sheets, cascading style sheets).
Existing single-page is applied when jumping to other webpages, and the single-page before redirecting applies corresponding status number According to, such as:Account logon information input by user, the other users data filled in may lose, so as to cause user preceding After completing corresponding operating toward other webpages, then knock-on to previous single-page in application, just needing before being manually entered page jump Single-page applies corresponding status data, and cumbersome, user experience is relatively low.
The above is only used to facilitate the understanding of the technical scheme, and is not represented and is recognized that the above is existing skill Art.
Invention content
The main purpose of the present invention is to provide a kind of page processing method, device, terminal and computer-readable storages Medium, it is intended to solve user in the prior art and then knock-on to previous single-page after going to other webpages to complete corresponding operatings In application, single-page application can not restore the state for operating and storing before user, the relatively low technical problem of user experience completely.
To achieve the above object, it the present invention provides a kind of page processing method, the described method comprises the following steps:
In single-page application displaying target pages, is instructed in response to page jump input by user, obtain the target The page data of the page;
Application state is extracted from the page data, and corresponding target string is generated according to the application state;
It is instructed from the target pages according to the page jump and jumps to jump page;
Restore to instruct in response to the page input by user, restore instruction according to the page is switched to from the jump page The target pages, and the target pages are restored by the target string.
Preferably, described that application state is extracted from the page data and corresponding according to application state generation Target string specifically includes:
Application state is extracted from the page data, the application state is screened, is obtained pending using shape State;
Corresponding target string is generated according to the pending application state, and the target string is delayed It deposits.
Preferably, described that corresponding target string is generated according to the pending application state, and to the target word Symbol string is cached, and is specifically included:
In existence time object in detecting the pending application state, the time object is extracted;
The time object is converted into the time character string of preset format;
Remaining pending application state is converted into character string to be restored, by the time character string and described to be restored Character string is cached as target string, and to the target string.
Preferably, described that target string is generated according to the pending page data, and to the target string into After row caching, the method further includes:
The target pages mark for obtaining the target pages, target pages mark and the target string are added Into mapping relations;
Correspondingly, described to restore to instruct in response to the page input by user, instruction is restored from the jump according to the page Blade-rotating face is switched to the target pages, and is restored to the target pages by the target string, specifically includes:
Restore to instruct in response to the page input by user, restore instruction according to the page is switched to from the jump page The target pages;
Obtain the corresponding target pages mark of the target pages;
Target string corresponding with target pages mark is searched in the mapping relations;
When in detecting the target string including time character string, the time character string is obtained, and according to institute It states time character string and generates new time object;
According to remaining character string in the new time object and the target string to the target pages into Row restores.
Preferably, described to generate new time object according to the time character string, including:
Obtain current time corresponding temporal information and the corresponding time format of the time character string;
According to the time format, format conversion is carried out to the temporal information, generates new time object.
Preferably, it is described according to remaining character string in the new time object and the target string to described Target pages are restored, including:
Display area of the time object in the target pages is determined, according to the display area to the new time Object is shown;
The content of pages to be restored for obtaining the target pages waits for that the page restores according to the remaining character string to described Content is filled in, and is shown to the page after filling in, to realize that the page restores.
Preferably, the method further includes:
The free memory of the caching is obtained every preset period of time;
When detecting that the free memory is less than predetermined threshold value, the caching is cleared up.
In addition, to achieve the above object, the present invention also proposes a kind of Page handling device, the Page handling device packet It includes:Data acquisition module, data processing module, page jump module and page recovery module;
The data acquisition module is used in single-page application displaying target pages, in response to the page input by user Jump instruction obtains the page data of the target pages;
The data processing module, for extracting application state from the page data, and according to the application state Generate corresponding target string;
The page jump module redirects page for being jumped to from the target pages according to page jump instruction Face;
The page recovery module, in response to the page input by user restore instruct, according to the page restore instruction from The jump page is switched to the target pages, and is restored to the target pages by the target string.
In addition, to achieve the above object, the present invention also proposes a kind of page processing terminal, the page processing terminal packet It includes:Memory, processor and it is stored in the page processing routine that can be run on the memory and on the processor, it is described Page processing routine is arranged for carrying out the step of page processing method as described above.
In addition, to achieve the above object, the present invention also proposes a kind of computer readable storage medium, which is characterized in that institute It states and is stored with page processing routine on computer readable storage medium, realized such as when the page processing routine is executed by processor The step of page processing method described above.
Page processing terminal of the present invention is in single-page application displaying target pages, in response to page jump input by user Instruction, obtains the page data of the target pages;Application state is extracted from the page data, and applies shape according to described State generates corresponding target string;It is instructed from the target pages according to the page jump and jumps to jump page;Response Restore to instruct in the page input by user, restore instruction according to the page is switched to the page object from the jump page Face, and the target pages are restored by the target string, user's operation is effectively simplified, user is improved Experience.
Description of the drawings
Fig. 1 is the structural schematic diagram of the page processing terminal for the hardware running environment that the embodiment of the present invention is related to;
Fig. 2 is the flow diagram of page processing method first embodiment of the present invention;
Fig. 3 is the flow diagram of page processing method second embodiment of the present invention;
Fig. 4 is the structure diagram of Page handling device first embodiment of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific implementation mode
It should be appreciated that described herein, specific examples are only used to explain the present invention, is not intended to limit the present invention.
Referring to Fig.1, Fig. 1 is the page processing terminal structural representation for the hardware running environment that the embodiment of the present invention is related to Figure.
As shown in Figure 1, the page processing terminal may include:Processor 1001, such as CPU, communication bus 1002, user Interface 1003, network interface 1004, memory 1005.Wherein, communication bus 1002 is for realizing the connection between these components Communication.User interface 1003 may include display screen (Display), input unit such as keyboard (Keyboard), optional user Interface 1003 can also include standard wireline interface and wireless interface.Network interface 1004 may include optionally having for standard Line interface, wireless interface (such as WI-FI interfaces).Memory 1005 can be high-speed RAM memory, can also be stable storage Device (non-volatile memory), such as magnetic disk storage.Memory 1005 optionally can also be independently of aforementioned processing The storage device of device 1001.
It will be understood by those skilled in the art that structure shown in Fig. 1 does not constitute the restriction to page processing terminal, it can To include either combining certain components or different components arrangement than illustrating more or fewer components.
As shown in Figure 1, as may include operating system, data storage mould in a kind of memory 1005 of storage medium Block, network communication module, Subscriber Interface Module SIM and page processing routine.
In page processing terminal shown in Fig. 1, network interface 1004 is mainly used for logical with background server progress data Letter;User interface 1003 is mainly used for carrying out data interaction with user;The processor 1001 of page processing terminal of the present invention, storage Device 1005 can be arranged in page processing terminal, and the page processing terminal is called by processor 1001 in memory 1005 The page processing routine of storage, and execute page processing method provided in an embodiment of the present invention.
It is page processing method of the present invention the with reference to Fig. 2, Fig. 2 an embodiment of the present invention provides a kind of page processing method The flow diagram of one embodiment.
In the present embodiment, the page processing method includes the following steps:
Step S10:In single-page application displaying target pages, instructs, obtain in response to page jump input by user The page data of the target pages;
It should be noted that the executive agent of the present embodiment method can be above-mentioned page processing terminal, at the page Reason terminal can be desktop computer, laptop, smart mobile phone, tablet computer or be communicated including computing function and data Any other equipment of ability, the present embodiment do not limit this.The target pages can be that single-page is applied and carried out The corresponding page before page jump, the page data may include:It text, image, animation, sound, video, table and/or leads The data such as boat column, i.e., the various page elements that the page is included.
In the concrete realization, the page processing terminal (hereinafter referred to as terminal) is jumped receiving the page input by user It when turning instruction, is instructed in response to the page jump, extraction single-page applies current time corresponding page (the i.e. described page object Face) page data.
Step S20:Application state is extracted from the page data, and corresponding target is generated according to the application state Character string;
It should be noted that the application state can be the shape for characterizing target pages current time various page elements State, such as:User this moment by mobile phone browsing Taobao shop and pick dress be added to shopping cart prepare payment, If user has clicked wechat payment at this time, then single-page will go to wechat to pay using meeting, then application state at this time Can be:Single-page is using the state of Taobao's account of user's login, user on the shown page before going to wechat payment The merchandise news of selection, the time state of page presentation, the corresponding node state of process of purchase (such as:Equal pending payments) etc..
In the concrete realization, single-page application can be extracted using redux technologies from the page data described using shape State, and the application state is concentrated on into an individual constant State Tree;In addition, single-page application can also answering according to extraction Necessary application state is processed into correspondingly character string (the i.e. described target string) with state and is preserved to session memory Middle carry out interim storage, the session memory (session storage) can be used for preserving temporarily for window (or mark Sign page) data, before user closes window or Shipping Options Page, these data are existing, and will be clear after closing Device of looking at is deleted, and session memory is additionally operable to preserve the data that those needs pass to next page from a page.
Further, in order to reduce the size of the application state extracted, recovery efficiency when subsequent page is restored is improved, It is truly realized the progress page recovery in the case where user is noninductive.In the present embodiment, the step S20 may particularly include:From Application state is extracted in the page data, the application state is screened, obtains pending application state;According to described Pending application state generates corresponding target string, and is cached to the target string, that is, preserves to the meeting Talk about memory.The pending application state can be analogous to the Account Logon state of user, page presentation time state, The payment method of user and payment status etc., it is preferred that the pending application state be information input by user or with The relevant application state of user's operation trace;Certainly, specific application state to be treated can be depending on actual conditions, this Embodiment does not limit this.
Further, in order to ensure smoothly completing for subsequent page recovery, the case where recovery fails is avoided the occurrence of.This In embodiment, the terminal needs to carry out special place to part special applications state when generating character string according to application state Reason.Wherein, the special applications state can be when extracting and/or storing to application state, not be character string or number The application state of word.Specifically, the terminal can be detected the pending application state, it is described pending detecting In application state when existence time object, the time object is extracted;The time object is converted into the time of preset format Character string;Remaining pending application state is converted into character string to be restored, by the time character string and described to be restored Character string is cached as target string, and to the target string.Preferably, the terminal can be by the time number According to the time character string for being converted into UNIX timestamp formats.
Step S30:It is instructed from the target pages according to the page jump and jumps to jump page;
In the concrete realization, the single-page application can redirect page by extracting included in the page jump instruction The page address in face, and jump page is jumped to from the target pages according to the page address.
Step S40:Restore to instruct in response to the page input by user, restore instruction according to the page redirects page from described Face is switched to the target pages, and is restored to the target pages by the target string.
It should be understood that user when carrying out page operation, may jump to second page B from meeting first page A and jump again Third page C is gone to, when user wants directly to jump back to first page from the third page C (the i.e. described jump page) being presently in When face A (the i.e. described target pages), it is stored in advance in the corresponding word of application state of the second page B in the session memory Symbol string is then invalid (current in other words unwanted), therefore terminal described in this step is getting the desired mesh restored of user When marking the page, it is only necessary to detect whether the corresponding character strings of first page A in session memory can be used, if available, obtain the The corresponding character strings of one page A simultaneously carry out page recovery.
In the concrete realization, the terminal is when receiving page recovery instruction input by user, in response to the page Restore instruction to leave from current page, user is gone to want to continue to the page (the i.e. described target pages) of browsing, while the end The corresponding target string of target pages can be searched in session memory and be obtained in end, and using redux technologies described in Target string restores the target pages.
The present embodiment page processing terminal is jumped in single-page application displaying target pages in response to the page input by user Turn instruction, obtains the page data of the target pages;Application state is extracted from the page data, and according to the application State generates corresponding target string;It is instructed from the target pages according to the page jump and jumps to jump page;It rings It should restore to instruct in the page input by user, restore instruction according to the page is switched to the page object from the jump page Face, and the target pages are restored by the target string, user's operation is effectively simplified, user is improved Experience.
With reference to figure 3, Fig. 3 is the flow diagram of page processing method second embodiment of the present invention.
In the page processing method proposed based on above-mentioned first embodiment, the present embodiment, the step S40 can be wrapped specifically It includes:
Step S401:Restore to instruct in response to the page input by user, restore instruction according to the page redirects from described Page layout switch is to the target pages;
It should be noted that restoring efficiency to improve the page, to realize that the terminal is extracting the page input by user When restoring the page iden-tity for including in instruction, the corresponding target string of the quick obtaining page iden-tity, and according to target character String carries out page recovery.The page processing method of the present embodiment further includes step before executing step S401:Described in acquisition The target pages of target pages identify, and target pages mark and the target string are added in mapping relations, institute It states mapping relations and is storable in above-mentioned terminal local, have the corresponding pass between page iden-tity and character string in the mapping relations System.
In the concrete realization, the terminal in response to the page input by user by restoring to instruct, and according to the page Restore instruction and determine target pages, the jump page that user is currently located then is switched into the target pages.
Step S402:Obtain the corresponding target pages mark of the target pages;
It should be noted that in the present embodiment, page iden-tity can be believed the mark that the different pages distinguish Breath, such as:The corresponding page address of the page or link, and or the terminal according to it is certain rule generate each page it is corresponding Layout sequence, certainly, the page iden-tity also can also be other marks or label with similar functions, and the present embodiment is to this It does not limit.
In the concrete realization, the terminal obtains the page object after determining that user wants the target pages restored The corresponding page iden-tity in face, i.e., the described target pages mark.
Step S403:Target string corresponding with target pages mark is searched in the mapping relations;
In this step, the terminal, can be in the mapping relations being locally stored after getting target pages mark In, corresponding character string (the i.e. described target string) whether there is according to the target pages identifier lookup;If in the presence of carrying The target string is taken, and the target string is detected, detects whether it includes time character string.
Step S404:When in detecting the target string including time character string, the time character string is obtained, And new time object is generated according to the time character string;
When in detecting the target string including time character string, the time character string is obtained, and according to institute The correct time date that the corresponding Time of Day system of terminal determines current time node is stated, then according to the time character string Corresponding time format and the correct time date, create new time object.Specifically, terminal can be current by obtaining Moment corresponding temporal information and the corresponding time format of the time character string;According to the time format, to it is described when Between information carry out format conversion, generate new time object.
Step S405:According to remaining character string in the new time object and the target string to the mesh The mark page is restored.
In the concrete realization, the terminal can first determine display area of the time object in the target pages, according to The display area is shown the new time object;In the present embodiment, after the establishment for completing new time object, The terminal can continue to determine the content of pages to be restored of the target pages, and page is waited for described according to the remaining character string Face is restored content and is filled in, and is shown to the page after filling in, and to realize that the page restores, reaches in user's unaware In the case of for user target pages are restored to the effect of the state to page jump, greatly optimize user experience.
Further, in order to improve character string storage reliability.Described in the present embodiment and the various embodiments described above eventually End can obtain the free memory of the caching every preset period of time;Detecting the free memory less than pre- If when threshold value, clearing up the caching.The wherein described preset period of time can sets itself according to demand, such as:2 is small When, 6 hours, 12 hours etc., the predetermined threshold value can be a numerical value being arranged according to the size of spatial cache, for example, right Memory space is that can set the predetermined threshold value to 500M for the caching of 1G.In addition, when clearing up caching, it can Preferential cleaning apart from current time more long historical data, or by by can clear up it is data cached show user, so Cache cleaner is carried out according to user's selection afterwards, the present embodiment is without limitation.
The present embodiment page processing terminal searches target word corresponding with the page iden-tity to be restored in mapping relations Symbol string;When in detecting the target string including time character string, obtain the time character string, and according to it is described when Between the new time object of text string generation;According to remaining character string in the new time object and the target string The target pages are restored, the efficiency of page recovery is improved.In addition, page processing terminal periodically carries out clearly caching Reason also ensures the reliability of character string storage.
In addition, the embodiment of the present invention also proposes a kind of computer readable storage medium, the computer readable storage medium On be stored with page processing routine, the page processing routine realizes page processing side as described above when being executed by processor The step of method.
It is the structure diagram of Page handling device first embodiment of the present invention with reference to Fig. 4, Fig. 4.
As shown in figure 4, the Page handling device that the embodiment of the present invention also proposes includes:At data acquisition module 101, data Manage module 102, page jump module 103 and page recovery module 104;
The data acquisition module 101 is used in single-page application displaying target pages, in response to page input by user Face jump instruction obtains the page data of the target pages;
It should be noted that the target pages, which can be single-page, applies the corresponding page before carrying out page jump, The page data may include:The data such as text, image, animation, sound, video, table and/or navigation bar, the i.e. page are wrapped The various page elements contained.
In the concrete realization, the data acquisition module 101 is when receiving page jump instruction input by user, response It is instructed in the page jump, extraction single-page applies the page data of current time corresponding page.
The data processing module 102 applies shape for extracting application state from the page data, and according to described State generates corresponding target string;
It should be noted that the application state can be the shape for characterizing target pages current time various page elements State, such as:User this moment by mobile phone browsing Taobao shop and pick dress be added to shopping cart prepare payment, If user has clicked wechat payment at this time, then single-page will go to wechat to pay using meeting, then application state at this time Can be:Single-page is using the state of Taobao's account of user's login, user on the shown page before going to wechat payment The merchandise news of selection, the time state of page presentation, the corresponding node state of process of purchase (such as:Equal pending payments) etc..
In the concrete realization, the data processing module 102 can extract institute using redux technologies from the page data Application state is stated, and the application state is concentrated on into an individual constant State Tree;In addition, the data processing module Necessary application state can be also processed into correspondingly character string (the i.e. described target string) by 102 according to the application state of extraction And it preserves and carries out interim storage into session memory.
Further, in order to reduce the size of the application state extracted, recovery efficiency when subsequent page is restored is improved, It is truly realized the progress page recovery in the case where user is noninductive.In the present embodiment, the data processing module 102, is also used In extracting application state from the page data, the application state is screened, pending application state is obtained;According to The pending application state generates corresponding target string, and is cached to the target string.It is described pending Application state can be analogous to the Account Logon state of user, the time state of page presentation, user payment method and Payment status etc., it is preferred that the pending application state is information input by user or relevant with user's operation trace Application state;Certainly, specific application state to be treated can be depending on actual conditions, and the present embodiment does not limit this System.
Further, in order to ensure smoothly completing for subsequent page recovery, the case where recovery fails is avoided the occurrence of.This In embodiment, the data processing module 102 is needed when generating character string according to application state to part special applications state Carry out specially treated.Wherein, the special applications state can not be when extracting and/or storing to application state The application state of character string or number.Specifically, the data processing module 102 can examine the pending application state It surveys, in existence time object in detecting the pending application state, extracts the time object;By the time object It is converted into the time character string of preset format;Remaining pending application state is converted into character string to be restored, when will be described Between character string and the character string to be restored cached as target string, and to the target string.Preferably, institute The time data can be converted into the time character string of UNIX timestamp formats by stating data processing module 102.
The page jump module 103 is redirected for being jumped to from the target pages according to page jump instruction The page;
In the concrete realization, the page jump module 103 can be by extracting included in the page jump instruction The page address of jump page, and jump page is jumped to from the target pages according to the page address.
The page recovery module 104, restores to instruct in response to the page input by user, restores to instruct according to the page The target pages are switched to from the jump page, and the target pages are restored by the target string.
It should be understood that user when carrying out page operation, may jump to second page B from meeting first page A and jump again Third page C is gone to, when user wants directly to jump back to first page from the third page C (the i.e. described jump page) being presently in When face A (the i.e. described target pages), it is stored in advance in the corresponding word of application state of the second page B in the session memory Symbol string is then invalid (current in other words unwanted), therefore page recovery module described in this step 104 is getting user When wanting the target pages restored, it is only necessary to detect whether the corresponding character strings of first page A in session memory can be used, if can With then obtaining the corresponding character strings of first page A and carry out page recovery.
In the concrete realization, the page recovery module 104 is when receiving page recovery instruction input by user, response Restore instruction in the page to leave from current page, user gone to want to continue to the page (the i.e. described target pages) of browsing, The corresponding target string of target pages can be searched in session memory and be obtained to the page recovery module 104 simultaneously, and The target pages are restored by the target string using redux technologies
The present embodiment Page handling device is jumped in single-page application displaying target pages in response to the page input by user Turn instruction, obtains the page data of the target pages;Application state is extracted from the page data, and according to the application State generates corresponding target string;It is instructed from the target pages according to the page jump and jumps to jump page;It rings It should restore to instruct in the page input by user, restore instruction according to the page is switched to the page object from the jump page Face, and the target pages are restored by the target string, user's operation is effectively simplified, user is improved Experience.
The other embodiment or specific implementation of Page handling device of the present invention can refer to above-mentioned each method embodiment, this Place repeats no more.
It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that process, method, article or system including a series of elements include not only those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this There is also other identical elements in the process of element, method, article or system.
The embodiments of the present invention are for illustration only, can not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical scheme of the present invention substantially in other words does the prior art Going out the part of contribution can be expressed in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal equipment (can be mobile phone, computer, clothes Be engaged in device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of page processing method, which is characterized in that the method includes:
In single-page application displaying target pages, is instructed in response to page jump input by user, obtain the target pages Page data;
Application state is extracted from the page data, and corresponding target string is generated according to the application state;
It is instructed from the target pages according to the page jump and jumps to jump page;
Restore to instruct in response to the page input by user, according to the page restore instruction be switched to from the jump page it is described Target pages, and the target pages are restored by the target string.
2. page processing method as described in claim 1, which is characterized in that shape is applied in the extraction from the page data State, and corresponding target string is generated according to the application state, including:
Application state is extracted from the page data, the application state is screened, obtains pending application state;
Corresponding target string is generated according to the pending application state, and the target string is cached.
3. page processing method as claimed in claim 2, which is characterized in that described to be generated according to the pending application state Corresponding target string, and the target string is cached, including:
In existence time object in detecting the pending application state, the time object is extracted;
The time object is converted into the time character string of preset format;
Remaining pending application state is converted into character string to be restored, by the time character string and the character to be restored String is used as target string, and is cached to the target string.
4. page processing method as claimed in claim 3, which is characterized in that described to be generated according to the pending page data Target string, and after being cached to the target string, the method further includes:
The target pages mark for obtaining the target pages, target pages mark and the target string are added to and are reflected It penetrates in relationship;
It is described to restore to instruct in response to the page input by user, instruction is restored according to the page and is switched to from the jump page The target pages, and the target pages are restored by the target string, including:
Restore to instruct in response to the page input by user, according to the page restore instruction be switched to from the jump page it is described Target pages;
Obtain the corresponding target pages mark of the target pages;
Target string corresponding with target pages mark is searched in the mapping relations;
When in detecting the target string including time character string, obtain the time character string, and according to it is described when Between the new time object of text string generation;
The target pages are carried out according to remaining character string in the new time object and the target string extensive It is multiple.
5. page processing method as claimed in claim 4, which is characterized in that described to be generated newly according to the time character string Time object, including:
Obtain current time corresponding temporal information and the corresponding time format of the time character string;
According to the time format, format conversion is carried out to the temporal information, generates new time object.
6. page processing method as claimed in claim 5, which is characterized in that described according to new the time object and institute Remaining character string in target string is stated to restore the target pages, including:
Display area of the time object in the target pages is determined, according to the display area to the new time object It is shown;
The content of pages to be restored for obtaining the target pages waits for that the page restores content according to the remaining character string to described It is filled in, and the page after filling in is shown, to realize that the page restores.
7. such as claim 2 to 6 any one of them page processing method, which is characterized in that the method further includes:
The free memory of the caching is obtained every preset period of time;
When detecting that the free memory is less than predetermined threshold value, the caching is cleared up.
8. a kind of Page handling device, which is characterized in that the Page handling device includes:Data acquisition module, data processing Module, page jump module and page recovery module;
The data acquisition module is used in single-page application displaying target pages, in response to page jump input by user Instruction, obtains the page data of the target pages;
The data processing module is generated for extracting application state from the page data, and according to the application state Corresponding target string;
The page jump module jumps to jump page for being instructed from the target pages according to the page jump;
The page recovery module, restores to instruct in response to the page input by user, restores to instruct from described according to the page Jump page is switched to the target pages, and is restored to the target pages by the target string.
9. a kind of page processing terminal, which is characterized in that the page processing terminal includes:It memory, processor and is stored in On the memory and the page processing routine that can run on the processor, the page processing routine be arranged for carrying out as The step of page processing method described in any one of claim 1 to 7.
10. a kind of computer readable storage medium, which is characterized in that be stored at the page on the computer readable storage medium Program is managed, the page processing as described in any one of claim 1 to 7 is realized when the page processing routine is executed by processor The step of method.
CN201810177290.5A 2018-03-02 2018-03-02 Page processing method, device, terminal and computer readable storage medium Active CN108416011B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810177290.5A CN108416011B (en) 2018-03-02 2018-03-02 Page processing method, device, terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810177290.5A CN108416011B (en) 2018-03-02 2018-03-02 Page processing method, device, terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN108416011A true CN108416011A (en) 2018-08-17
CN108416011B CN108416011B (en) 2021-02-05

Family

ID=63129666

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810177290.5A Active CN108416011B (en) 2018-03-02 2018-03-02 Page processing method, device, terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108416011B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109634776A (en) * 2018-10-16 2019-04-16 平安普惠企业管理有限公司 Application recovery method, apparatus, equipment and storage medium
CN109936575A (en) * 2019-03-07 2019-06-25 北京融链科技有限公司 Page access method, apparatus, storage medium and processor
CN110232003A (en) * 2019-05-20 2019-09-13 平安普惠企业管理有限公司 Data reconstruction method, device, electronic equipment and storage medium
CN110399576A (en) * 2019-07-19 2019-11-01 北京字节跳动网络技术有限公司 Page switching method, device, readable medium and electronic equipment
CN111475750A (en) * 2020-03-04 2020-07-31 百度在线网络技术(北京)有限公司 Page preloading control method, device, system, equipment and storage medium
CN111597475A (en) * 2020-04-21 2020-08-28 五八有限公司 Page returning method and device, electronic equipment and computer storage medium
CN112711455A (en) * 2020-12-31 2021-04-27 京东数字科技控股股份有限公司 Page interaction method and device, electronic equipment and storage medium
CN113971059A (en) * 2020-07-22 2022-01-25 北京奇虎科技有限公司 Method, device, equipment and storage medium for recovering equipment connection state
WO2022095932A1 (en) * 2020-11-04 2022-05-12 北京字节跳动网络技术有限公司 Livestreaming room page jumping method and apparatus, livestreaming room page returning method and apparatus, and electronic device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103678536A (en) * 2013-12-02 2014-03-26 乐视网信息技术(北京)股份有限公司 Method and device for implementing page returning
CN104978385A (en) * 2015-03-19 2015-10-14 腾讯科技(深圳)有限公司 Information processing method, browser client and terminal
US20170052853A1 (en) * 2015-08-17 2017-02-23 Sap Portals Israel Ltd. System and method of data loss prevention
CN106919620A (en) * 2015-12-28 2017-07-04 北京国双科技有限公司 Single-page processing method and processing device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103678536A (en) * 2013-12-02 2014-03-26 乐视网信息技术(北京)股份有限公司 Method and device for implementing page returning
CN104978385A (en) * 2015-03-19 2015-10-14 腾讯科技(深圳)有限公司 Information processing method, browser client and terminal
US20170052853A1 (en) * 2015-08-17 2017-02-23 Sap Portals Israel Ltd. System and method of data loss prevention
CN106919620A (en) * 2015-12-28 2017-07-04 北京国双科技有限公司 Single-page processing method and processing device

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109634776A (en) * 2018-10-16 2019-04-16 平安普惠企业管理有限公司 Application recovery method, apparatus, equipment and storage medium
CN109936575A (en) * 2019-03-07 2019-06-25 北京融链科技有限公司 Page access method, apparatus, storage medium and processor
CN109936575B (en) * 2019-03-07 2021-11-12 北京融链科技有限公司 Page access method, device, storage medium and processor
CN110232003A (en) * 2019-05-20 2019-09-13 平安普惠企业管理有限公司 Data reconstruction method, device, electronic equipment and storage medium
CN110399576A (en) * 2019-07-19 2019-11-01 北京字节跳动网络技术有限公司 Page switching method, device, readable medium and electronic equipment
CN110399576B (en) * 2019-07-19 2023-02-10 北京字节跳动网络技术有限公司 Page switching method and device, readable medium and electronic equipment
CN111475750A (en) * 2020-03-04 2020-07-31 百度在线网络技术(北京)有限公司 Page preloading control method, device, system, equipment and storage medium
CN111597475A (en) * 2020-04-21 2020-08-28 五八有限公司 Page returning method and device, electronic equipment and computer storage medium
CN111597475B (en) * 2020-04-21 2021-10-29 五八有限公司 Page returning method and device, electronic equipment and computer storage medium
CN113971059A (en) * 2020-07-22 2022-01-25 北京奇虎科技有限公司 Method, device, equipment and storage medium for recovering equipment connection state
WO2022095932A1 (en) * 2020-11-04 2022-05-12 北京字节跳动网络技术有限公司 Livestreaming room page jumping method and apparatus, livestreaming room page returning method and apparatus, and electronic device
CN112711455A (en) * 2020-12-31 2021-04-27 京东数字科技控股股份有限公司 Page interaction method and device, electronic equipment and storage medium
CN112711455B (en) * 2020-12-31 2024-04-16 京东科技控股股份有限公司 Page interaction method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN108416011B (en) 2021-02-05

Similar Documents

Publication Publication Date Title
CN108416011A (en) A kind of page processing method, device, terminal and computer readable storage medium
US10924574B2 (en) Systems and methods for managing loading priority or sequencing of fragments of a web object
US10783211B2 (en) Page processing method and device thereof
US20190251143A1 (en) Web page rendering method and related device
US11233841B2 (en) Systems and methods for configuration-based optimization by an intermediary
US8204950B2 (en) Webpage search
CN110245069B (en) Page version testing method and device and page display method and device
CN109408752B (en) Online document display method and device and electronic equipment
US9710440B2 (en) Presenting fixed format documents in reflowed format
KR20130066603A (en) Initiating font subsets
CN102411614A (en) Display Of Image Search Results
CN104243273A (en) Method and device for displaying information on instant messaging client and information display system
CN104423991A (en) Webpage loading and webpage data providing method and device of mobile terminal
CN112685671A (en) Page display method, device, equipment and storage medium
JP6015967B2 (en) Device and program for displaying web pages
CN107818101A (en) The method and its device of page jump
CN110968314A (en) Page generation method and device
CN105278977B (en) A kind of loading method and device of web pages component
CN104915404A (en) Method and device for accessing invalid website
US10289613B2 (en) Element identifier generation
US20140337709A1 (en) Method and apparatus for displaying web page
CN104346186A (en) Method and device for off-line reading of network books
CN107016000A (en) The method and device of exhibition information
US11789597B2 (en) Systems and methods for storing references to original uniform resource identifiers
CN109284451B (en) Webpage pre-operation method, webpage browsing terminal and storage medium

Legal Events

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