CN107807993A - A kind of implementation method and device of web-page histories writing function - Google Patents

A kind of implementation method and device of web-page histories writing function Download PDF

Info

Publication number
CN107807993A
CN107807993A CN201711089138.3A CN201711089138A CN107807993A CN 107807993 A CN107807993 A CN 107807993A CN 201711089138 A CN201711089138 A CN 201711089138A CN 107807993 A CN107807993 A CN 107807993A
Authority
CN
China
Prior art keywords
url
array
historical record
current
target
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
CN201711089138.3A
Other languages
Chinese (zh)
Other versions
CN107807993B (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.)
Shandong Langchao Ultra Hd Intelligent Technology Co ltd
Original Assignee
Shandong Inspur Business System 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 Shandong Inspur Business System Co Ltd filed Critical Shandong Inspur Business System Co Ltd
Priority to CN201711089138.3A priority Critical patent/CN107807993B/en
Publication of CN107807993A publication Critical patent/CN107807993A/en
Application granted granted Critical
Publication of CN107807993B publication Critical patent/CN107807993B/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/957Browsing optimisation, e.g. caching or content distillation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links

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)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a kind of implementation method and device of web-page histories writing function, this method includes:Obtain the current uniform resource finger URL URL of current web page;The current URL of acquisition is stored into default historical record array;Wherein, the historical record array is arranged in the data cookie being stored on user local terminal;Target URL is obtained from the cookie historical record array;According to the target URL, target web corresponding with the target URL is shown.This programme realizes web-page histories writing function, user is jumped directly to other historical record webpages from the webpage of current accessed, so as to improve Consumer's Experience.

Description

Method and device for realizing webpage history recording function
Technical Field
The invention relates to the technical field of computers, in particular to a method and a device for realizing a webpage history recording function.
Background
With the continuous development of computer network technology, BS architecture systems are widely used in various industries, and accordingly, various terminals can also implement various functions to meet the needs of users.
When the terminal realizes different functions, multiple pages need to be switched in the browser, however, based on the existing browser history record storage mechanism, after a certain page is closed, the browser will empty the history record corresponding to the page. For example, when a user plays a program a through a terminal, a home page of a video website is opened in a browser, and then an operation is performed in the home page to obtain a list page including the program a, for example, the list page includes the program a and the program B, and at this time, the program a in the list page is selected, and the program a can be played.
However, when the user wants to switch from program a to program B, the user cannot return to the list page including program B because the history corresponding to the list page is already empty, and can only re-enter the main page of the video website to make a selection again. Therefore, the process is complicated when different functions are realized, and the user experience is reduced.
Disclosure of Invention
The embodiment of the invention provides a method and a device for realizing a historical record function of a webpage, which can improve user experience.
In a first aspect, an embodiment of the present invention provides a method for implementing a web page history recording function, including:
acquiring a current Uniform Resource Locator (URL) of a current webpage;
storing the acquired current URL into a preset historical record array; wherein the history array is set in a data cookie stored on the user's local terminal;
further comprising:
acquiring a target URL from the historical record array of the cookie;
and displaying a target webpage corresponding to the target URL according to the target URL.
Preferably, the first and second electrodes are formed of a metal,
before the storing the obtained current URL into a preset history array, the method further includes:
at least one historical URL is pre-stored in the historical record array, and the at least one historical URL is sequenced according to the storage time corresponding to each historical URL;
the storing the acquired current URL into a preset historical record array comprises:
determining the last history URL in the sequence according to the sequencing result of the at least one history URL;
determining whether the current URL is the same as the last historical URL, if not, storing the current URL in the historical record array;
preferably, the first and second electrodes are formed of a metal,
the storing the acquired current URL into a preset historical record array comprises:
determining a home page identifier of a network home page corresponding to the current webpage;
determining whether the home page identifier exists in the current URL, if so, removing the home page identifier, and storing the removed current URL into the historical record array;
preferably, the first and second electrodes are formed of a metal,
when the number of the history arrays set in the cookie is at least two, before storing the acquired current URL in a preset history array, the method further includes:
determining an array identifier corresponding to each historical record array;
then the process of the first step is carried out,
the storing the acquired current URL into a preset historical record array comprises:
analyzing the current URL and determining a characteristic identifier corresponding to the current URL;
determining a historical record array corresponding to the current URL according to the feature identifier and array identifiers respectively corresponding to the historical record arrays;
and storing the current URL into the determined historical record array.
Preferably, the first and second electrodes are formed of a metal,
the obtaining a target URL from the history array of cookies includes:
determining a target history array from at least two of the histories;
and determining the URL with the shortest storage time in the target historical record array according to the storage time sequence of each URL in the target historical record array, and taking the determined URL as the target URL.
Preferably, the first and second electrodes are formed of a metal,
after the storing the obtained current URL into a preset history array, further comprising:
determining the number of URLs in the history array;
updating the number of the preset historical records in the cookie according to the determined number of the URLs;
then the process of the first step is carried out,
the obtaining a target URL from the history array of cookies includes:
and determining whether the number of the historical records is larger than a preset threshold value, and if so, acquiring a target URL from the historical record array of the cookie.
Preferably, the first and second electrodes are formed of a metal,
after the displaying the target webpage corresponding to the target URL according to the target URL, further comprising:
deleting the target URL from the history array and updating the history number in the cookie.
In a second aspect, an embodiment of the present invention provides an apparatus for implementing a web page history recording function, including: the system comprises a URL acquisition unit, a URL storage unit and a webpage display unit; wherein,
the URL obtaining unit is used for obtaining a current uniform resource locator URL of a current webpage;
the URL storage unit is used for storing the acquired current URL into a preset historical record array; wherein the history array is set in a data cookie stored on the user's local terminal;
and the webpage display unit is used for acquiring a target URL from the historical record array of the cookie and displaying a target webpage corresponding to the target URL according to the target URL.
Preferably, the first and second electrodes are formed of a metal,
the URL storage unit is used for pre-storing at least one historical URL in the historical record array and sequencing the at least one historical URL according to the storage time corresponding to each historical URL; determining the last history URL in the sequence according to the sequencing result of the at least one history URL; determining whether the current URL is the same as the last historical URL, if not, storing the current URL in the historical record array;
preferably, the first and second electrodes are formed of a metal,
the URL storage unit is used for determining a home page identifier of a network home page corresponding to the current webpage, determining whether the home page identifier exists in the current URL, if so, clearing the home page identifier, and storing the cleared current URL into the historical record array;
preferably, the first and second electrodes are formed of a metal,
when the number of the historical record arrays set in the cookie is at least two, the URL storage unit is used for determining an array identifier corresponding to each historical record array, analyzing the current URL and determining a feature identifier corresponding to the current URL; determining a historical record array corresponding to the current URL according to the feature identifier and array identifiers respectively corresponding to the historical record arrays; storing the current URL into the determined historical record array;
the webpage display unit is used for determining a target historical record array from at least two historical records; and determining the URL with the shortest storage time in the target historical record array according to the storage time sequence of each URL in the target historical record array, and taking the determined URL as the target URL.
Preferably, the first and second electrodes are formed of a metal,
further comprising: an update unit; wherein,
the updating unit is used for determining the number of the URLs in the historical record array after the URL storage unit stores the acquired current URL into a preset historical record array, and updating the preset historical record number in the cookie according to the determined number of the URLs;
and the webpage display unit is used for determining whether the number of the historical records is greater than a preset threshold value, and if so, acquiring a target URL from the historical record array of the cookie.
The embodiment of the invention provides a method and a device for realizing a webpage history recording function, wherein after a current Uniform Resource Locator (URL) of a current webpage is obtained, the current URL is stored in a history recording array of a cookie. When the historical record webpage needs to be accessed, the target URL can be obtained from the historical record array of the cookie, and the corresponding target webpage, namely the historical record webpage, is displayed according to the target URL, so that the historical record function of the webpage is realized, and a user can directly jump to other historical record webpages from the currently accessed webpage, so that the user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a flowchart of a method for implementing a history function of a web page according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for implementing a history function of a web page according to another embodiment of the present invention;
fig. 3 is a schematic structural diagram of an apparatus for implementing a web page history recording function according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an apparatus for implementing a web page history recording function according to another embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer and more complete, the technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention, and based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without creative efforts belong to the scope of the present invention.
As shown in fig. 1, an embodiment of the present invention provides a method for implementing a web page history recording function, where the method may include the following steps:
step 101: acquiring a current Uniform Resource Locator (URL) of a current webpage;
step 102: storing the acquired current URL into a preset historical record array; wherein the history array is set in a data cookie stored on the user's local terminal;
step 103: acquiring a target URL from the historical record array of the cookie;
step 104: and displaying a target webpage corresponding to the target URL according to the target URL.
In the above embodiment, after the current URL of the current web page is acquired, the current URL is stored in the history array of the cookie. When the historical record webpage needs to be accessed, the target URL can be obtained from the historical record array of the cookie, and the corresponding target webpage, namely the historical record webpage, is displayed according to the target URL, so that the historical record function of the webpage is realized, and a user can directly jump to other historical record webpages from the currently accessed webpage, so that the user experience is improved.
In an embodiment of the present invention, before step 102, further comprising:
at least one historical URL is pre-stored in the historical record array, and the at least one historical URL is sequenced according to the storage time corresponding to each historical URL;
specific embodiments of step 102 may include:
determining the last history URL in the sequence according to the sequencing result of the at least one history URL;
determining whether the current URL is the same as the last history URL, and if not, storing the current URL in the history array.
In this embodiment, history URLs are pre-stored in the history array, and the history URLs are arranged according to the storage time sequence, for example, A, B and C are pre-stored in the history array, a is stored in the history array first, C is stored in the history array last, and the arrangement sequence of A, B and C is a-B-C. After the current URL corresponding to the current webpage is obtained, whether the current URL is the same as the historical URL C or not is judged, if yes, the current webpage is returned through a returning operation, and therefore the corresponding historical record is not added, if not, the current webpage is a reopened webpage, the current URL is stored in the historical record array, the current webpage can be conveniently returned through other webpages subsequently, and the webpage historical record function is achieved. Therefore, only the current URL different from the last historical URL is stored in the historical record array, the same URL is prevented from being repeatedly stored, the same webpage is prevented from being returned for many times, the selection of the target URL is facilitated, and the user experience is further improved.
In an embodiment of the present invention, the detailed implementation of step 102 may include:
determining a home page identifier of a network home page corresponding to the current webpage;
and determining whether the home page identifier exists in the current URL, if so, clearing the home page identifier, and storing the cleared current URL into the historical record array.
The home page identification is a plurality of specific parameters existing in the URL, if the home page identification exists in the URL, the system performs specific operations according to the parameters after the webpage corresponding to the URL is opened, for example, some browsers of android programs check some links in the webpage corresponding to the URL having the home page identification after the webpage corresponding to the URL is opened, and when the home page is returned again, the check is not required again because the check is performed before. In order to avoid redundant operation when the webpage is returned, when the current URL is stored, the home page identifier in the current URL is removed, for example, the home page identifier is removed through global variable processing, and then the current URL after the home page identifier is removed is stored, so that the work flow of returning the historical webpage is reduced, and the realization efficiency of the historical webpage recording function is improved.
In an embodiment of the present invention, when the number of the history arrays set in the cookie is at least two, before step 102, the method may further include:
determining an array identifier corresponding to each historical record array;
specific embodiments of step 102 may include:
analyzing the current URL and determining a characteristic identifier corresponding to the current URL;
determining a historical record array corresponding to the current URL according to the feature identifier and array identifiers respectively corresponding to the historical record arrays;
and storing the current URL into the determined historical record array.
In this embodiment, when the number of the history arrays in the cookie is at least two, for example, there are two history arrays a and b in the cookie, which correspond to hundredths and google respectively, the array identifier of the array a is baidu, the array identifier of the array b is google, and after the current URL is obtained, according to the feature identifier in the current URL, taking baidu as an example, it is determined that the history array corresponding to the current URL is a, so that the current URL is stored in the history array a.
Based on this, in an embodiment of the present invention, the detailed implementation of step 103 may include:
determining a target history array from at least two of the histories;
and determining the URL with the shortest storage time in the target historical record array according to the storage time sequence of each URL in the target historical record array, and taking the determined URL as the target URL.
When the history function needs to be utilized, a target history array is determined from the history arrays A and B, for example, the determined history array is array A, namely an array corresponding to hundred degrees. And selecting the URL with the shortest storage time according to the storage time sequence of each URL in the array. For example, three URLs A, B and C are stored in the array a, a is stored in the array a first, and C is stored in the array a last, that is, the storage time length of a is longest, and the storage time length of C is shortest, then C is taken as the target URL. Therefore, the corresponding target URL is selected from the target historical record array, so that when the webpage historical record function is realized, jumping can be performed among webpages corresponding to all URLs included in the array with the same array identification, namely, visited historical webpages all have the same characteristic identification, a user can conveniently visit the webpages with the same characteristic, and the user experience is further improved.
In an embodiment of the present invention, after step 102, the method further includes:
determining the number of URLs in the history array;
updating the number of the preset historical records in the cookie according to the determined number of the URLs;
specific embodiments of step 103 may include:
and determining whether the number of the historical records is larger than a preset threshold value, and if so, acquiring a target URL from the historical record array of the cookie.
After the current URL is stored, the number of URLs in the history array is determined, for example, if the number of URLs in the history data before storage is 5, after the current URL is stored, the number is increased from 5 to 6, and a variable for storing the number of the history in the cookie is updated according to the stored number. When the target URL is determined from the history array, it is first determined whether the number of history records in the cookie is greater than a preset threshold, for example, when the preset threshold is 1, if the number of history records is less than 1, it is determined that the target URL enters the browser for the first time, and at this time, default processing operations are performed, for example, a corresponding top page or other pre-specified pages are opened. And if the number of the history records is more than 1, taking the last URL in the history record array as the target URL. Therefore, the number of the historical records is updated in time, corresponding number prompt is conveniently carried out on the user when the user accesses the historical records, and user experience is further improved.
In an embodiment of the present invention, after step 104, the method may further include:
deleting the target URL from the history array and updating the history number in the cookie.
And after the webpage corresponding to the target URL is displayed, deleting the target URL in the historical record array, and updating the historical record number in the cookie, so that after the user visits the corresponding historical webpage, the corresponding URL is deleted in time, the URLs in the historical record array are managed conveniently, and the user experience is further improved.
As shown in fig. 2, an embodiment of the present invention provides a method for implementing a web page history recording function, where the method may include the following steps:
step 201: and acquiring the current URL of the current webpage.
Step 202: and judging whether the current URL is the same as the last historical URL in the historical record array preset in the cookie, if so, ending the current flow, otherwise, executing the step 203.
For example, history URLs are pre-stored in the history array, and the history URLs are arranged according to the storage time sequence, for example, A, B and C are pre-stored in the history array, a is stored in the history array first, C is stored in the history array last, and the arrangement sequence of A, B and C is a-B-C. After the current URL corresponding to the current webpage is obtained, whether the current URL is the same as the historical URL C is judged, if yes, the current webpage is returned through a return operation, and therefore the corresponding historical record is not added.
Step 203: and judging whether the home page identifier exists in the current URL, if so, executing the step 204, otherwise, executing the step 205.
Step 204: the home page identification is cleared and step 205 is performed.
The home page identification is a plurality of specific parameters existing in the URL, if the home page identification exists in the URL, the system performs specific operations according to the parameters after the webpage corresponding to the URL is opened, for example, some browsers of android programs check some links in the webpage corresponding to the URL having the home page identification after the webpage corresponding to the URL is opened, and when the home page is returned again, the check is not required again because the check is performed before. In order to avoid redundant operations when returning to the web page, when storing the current URL, the home page identifier in the current URL is cleared, for example, by global variable processing.
Step 205: and storing the current URL into a history record array, determining the number of URLs in the history record array, and updating the preset history record number in the cookie according to the determined number of URLs.
After the current URL is stored, the number of URLs in the history array is determined, for example, if the number of URLs in the history data before storage is 5, after the current URL is stored, the number is increased from 5 to 6, and a variable for storing the number of the history in the cookie is updated according to the stored number.
Step 206: and reading the number of the historical records in the cookie, judging whether the number of the historical records is greater than 1, if so, executing the step 207, otherwise, ending the current flow.
Step 207: and determining the URL with the shortest storage time in the historical record array according to the storage time sequence of each URL in the historical record array, and taking the determined URL as the target URL.
Step 208: and displaying a target webpage corresponding to the target URL, deleting the target URL from the historical record array, and updating the historical record quantity in the cookie.
When the target URL is determined from the history array, whether the history number in the cookie is 1 or not is determined, if the history number is less than 1, the browser is considered to enter the browser for the first time, and at this time, default processing operation is executed, for example, a corresponding first page or other pre-specified pages are opened. If the number of the history records is greater than 1, the last URL in the history record array is used as the target URL, which is URL C.
And after the webpage corresponding to the target URL is displayed, deleting the target URL in the historical record array, and updating the historical record number in the cookie, so that after the user visits the corresponding historical webpage, the corresponding URL is deleted in time, the URLs in the historical record array are managed conveniently, and the user experience is further improved.
As shown in fig. 3, an embodiment of the present invention provides an apparatus for implementing a web page history recording function, including: a URL obtaining unit 301, a URL storing unit 302 and a web page display unit 303; wherein,
the URL obtaining unit 301 is configured to obtain a current uniform resource locator URL of a current web page;
the URL storage unit 302 is configured to store the acquired current URL into a preset history array; wherein the history array is set in a data cookie stored on the user's local terminal;
the web page display unit 303 is configured to obtain a target URL from the history array of the cookie, and display a target web page corresponding to the target URL according to the target URL.
In an embodiment of the present invention, the URL storage unit 302 is configured to pre-store at least one history URL in the history record array, and sort the at least one history URL according to a storage time corresponding to each history URL; determining the last history URL in the sequence according to the sequencing result of the at least one history URL; determining whether the current URL is the same as the last historical URL, if not, storing the current URL in the historical record array;
in an embodiment of the present invention, the URL storage unit 302 is configured to determine a home page identifier of a network home page corresponding to the current webpage, determine whether the home page identifier exists in the current URL, if so, clear the home page identifier, and store the cleared current URL in the history array.
In an embodiment of the present invention, when the number of the history arrays set in the cookie is at least two, the URL storage unit 302 is configured to determine an array identifier corresponding to each history array, analyze the current URL, and determine a feature identifier corresponding to the current URL; determining a historical record array corresponding to the current URL according to the feature identifier and array identifiers respectively corresponding to the historical record arrays; storing the current URL into the determined historical record array;
the webpage display unit 303 is configured to determine a target history record array from at least two history records; and determining the URL with the shortest storage time in the target historical record array according to the storage time sequence of each URL in the target historical record array, and taking the determined URL as the target URL.
As shown in fig. 4, in an embodiment of the present invention, the apparatus may further include: an update unit 401; wherein,
the updating unit 401 is configured to determine the number of URLs in a history array after the URL storing unit 302 stores the acquired current URL in the preset history array, and update the preset history number in the cookie according to the determined number of URLs;
the web page display unit 303 is configured to determine whether the number of history records is greater than a preset threshold, and if so, execute to obtain a target URL from the history record array of the cookie.
Because the information interaction, execution process, and other contents between the units in the device are based on the same concept as the method embodiment of the present invention, specific contents may refer to the description in the method embodiment of the present invention, and are not described herein again.
An embodiment of the present invention further provides a readable medium, which includes an execution instruction, and when a processor of a storage controller executes the execution instruction, the storage controller executes a method provided in any one of the above embodiments of the present invention.
An embodiment of the present invention further provides a storage controller, including: a processor, a memory, and a bus; the memory is used for storing execution instructions, the processor is connected with the memory through the bus, and when the storage controller runs, the processor executes the execution instructions stored in the memory, so that the storage controller executes the method provided by any one of the above embodiments of the invention.
In summary, the above embodiments of the present invention have at least the following advantages:
1. in the embodiment of the invention, after the current URL of the current webpage is acquired, the current URL is stored in the historical record array of the cookie. When the historical record webpage needs to be accessed, the target URL can be obtained from the historical record array of the cookie, and the corresponding target webpage, namely the historical record webpage, is displayed according to the target URL, so that the historical record function of the webpage is realized, and a user can directly jump to other historical record webpages from the currently accessed webpage, so that the user experience is improved.
2. In the embodiment of the invention, when the current URL is different from the last historical URL in the historical record array, the current URL is stored in the historical record array, so that the same URL is prevented from being repeatedly stored, the same webpage is prevented from being returned for multiple times, the selection of the target URL is facilitated, and the user experience is further improved.
3. In the embodiment of the invention, when the home page identifier of the network home page corresponding to the current webpage exists in the current URL, the home page identifier is removed, and the removed current URL is stored in the historical record array, so that the work flow of returning to the historical webpage is reduced, and the realization efficiency of the historical webpage recording function is improved.
4. In the embodiment of the invention, when the number of the historical record arrays set in the cookie is at least two, the array identifier corresponding to each historical record array is determined, the characteristic identifier corresponding to the current URL is determined, the historical record array corresponding to the current URL is determined according to the characteristic identifier and the array identifiers corresponding to the historical record arrays, and the current URL is stored in the determined historical record array. When the operation of returning to the history record is executed, the target history record array is determined, and the URL with the shortest storage market is selected from the target history record array as the target URL, so that the user can conveniently access the webpage with the same characteristic, and the user experience is further improved.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, 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 a" does not exclude the presence of other similar elements in a process, method, article, or apparatus that comprises the element.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it is to be noted that: the above description is only a preferred embodiment of the present invention, and is only used to illustrate the technical solutions of the present invention, and not to limit the protection scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (10)

1. A method for realizing a webpage history recording function is characterized by comprising the following steps:
acquiring a current Uniform Resource Locator (URL) of a current webpage;
storing the acquired current URL into a preset historical record array; wherein the history array is set in a data cookie stored on the user's local terminal;
further comprising:
acquiring a target URL from the historical record array of the cookie;
and displaying a target webpage corresponding to the target URL according to the target URL.
2. The method of claim 1,
before the storing the obtained current URL into a preset history array, the method further includes:
at least one historical URL is pre-stored in the historical record array, and the at least one historical URL is sequenced according to the storage time corresponding to each historical URL;
the storing the acquired current URL into a preset historical record array comprises:
determining the last history URL in the sequence according to the sequencing result of the at least one history URL;
determining whether the current URL is the same as the last historical URL, if not, storing the current URL in the historical record array;
and/or the presence of a gas in the gas,
the storing the acquired current URL into a preset historical record array comprises:
determining a home page identifier of a network home page corresponding to the current webpage;
and determining whether the home page identifier exists in the current URL, if so, clearing the home page identifier, and storing the cleared current URL into the historical record array.
3. The method of claim 1,
when the number of the history arrays set in the cookie is at least two, before storing the acquired current URL in a preset history array, the method further includes:
determining an array identifier corresponding to each historical record array;
then the process of the first step is carried out,
the storing the acquired current URL into a preset historical record array comprises:
analyzing the current URL and determining a characteristic identifier corresponding to the current URL;
determining a historical record array corresponding to the current URL according to the feature identifier and array identifiers respectively corresponding to the historical record arrays;
and storing the current URL into the determined historical record array.
4. The method of claim 3,
the obtaining a target URL from the history array of cookies includes:
determining a target history array from at least two of the histories;
and determining the URL with the shortest storage time in the target historical record array according to the storage time sequence of each URL in the target historical record array, and taking the determined URL as the target URL.
5. The method of claim 1,
after the storing the obtained current URL into a preset history array, further comprising:
determining the number of URLs in the history array;
updating the number of the preset historical records in the cookie according to the determined number of the URLs;
then the process of the first step is carried out,
the obtaining a target URL from the history array of cookies includes:
and determining whether the number of the historical records is larger than a preset threshold value, and if so, acquiring a target URL from the historical record array of the cookie.
6. The method of claim 5,
after the displaying the target webpage corresponding to the target URL according to the target URL, further comprising:
deleting the target URL from the history array and updating the history number in the cookie.
7. An apparatus for implementing a history recording function of a web page, comprising: the system comprises a URL acquisition unit, a URL storage unit and a webpage display unit; wherein,
the URL obtaining unit is used for obtaining a current uniform resource locator URL of a current webpage;
the URL storage unit is used for storing the acquired current URL into a preset historical record array; wherein the history array is set in a data cookie stored on the user's local terminal;
and the webpage display unit is used for acquiring a target URL from the historical record array of the cookie and displaying a target webpage corresponding to the target URL according to the target URL.
8. The apparatus of claim 7,
the URL storage unit is used for pre-storing at least one historical URL in the historical record array and sequencing the at least one historical URL according to the storage time corresponding to each historical URL; determining the last history URL in the sequence according to the sequencing result of the at least one history URL; determining whether the current URL is the same as the last historical URL, if not, storing the current URL in the historical record array;
and/or the presence of a gas in the gas,
and the URL storage unit is used for determining the home page identifier of the network home page corresponding to the current webpage, determining whether the home page identifier exists in the current URL, if so, clearing the home page identifier, and storing the cleared current URL into the historical record array.
9. The apparatus of claim 7,
when the number of the historical record arrays set in the cookie is at least two, the URL storage unit is used for determining an array identifier corresponding to each historical record array, analyzing the current URL and determining a feature identifier corresponding to the current URL; determining a historical record array corresponding to the current URL according to the feature identifier and array identifiers respectively corresponding to the historical record arrays; storing the current URL into the determined historical record array;
the webpage display unit is used for determining a target historical record array from at least two historical records; and determining the URL with the shortest storage time in the target historical record array according to the storage time sequence of each URL in the target historical record array, and taking the determined URL as the target URL.
10. The apparatus of claim 7,
further comprising: an update unit; wherein,
the updating unit is used for determining the number of the URLs in the historical record array after the URL storage unit stores the acquired current URL into a preset historical record array, and updating the preset historical record number in the cookie according to the determined number of the URLs;
and the webpage display unit is used for determining whether the number of the historical records is greater than a preset threshold value, and if so, acquiring a target URL from the historical record array of the cookie.
CN201711089138.3A 2017-11-08 2017-11-08 Method and device for realizing webpage history recording function Active CN107807993B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711089138.3A CN107807993B (en) 2017-11-08 2017-11-08 Method and device for realizing webpage history recording function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711089138.3A CN107807993B (en) 2017-11-08 2017-11-08 Method and device for realizing webpage history recording function

Publications (2)

Publication Number Publication Date
CN107807993A true CN107807993A (en) 2018-03-16
CN107807993B CN107807993B (en) 2021-06-15

Family

ID=61591832

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711089138.3A Active CN107807993B (en) 2017-11-08 2017-11-08 Method and device for realizing webpage history recording function

Country Status (1)

Country Link
CN (1) CN107807993B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108769211A (en) * 2018-05-31 2018-11-06 康键信息技术(深圳)有限公司 The method for routing and computer readable storage medium of client device, webpage
CN109842621A (en) * 2019-01-25 2019-06-04 福建天泉教育科技有限公司 A kind of method and terminal reducing token storage quantity

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102402518A (en) * 2010-09-09 2012-04-04 中国移动通信有限公司 Method and device for accessing webpage
CN103036993A (en) * 2012-12-18 2013-04-10 北京奇虎科技有限公司 Browser client-side and method of achieving website logging
CN103455478A (en) * 2012-05-21 2013-12-18 腾讯科技(深圳)有限公司 Webpage access accelerating method and device
CN103500204A (en) * 2013-09-27 2014-01-08 北京京东尚科信息技术有限公司 Web surfing backspacing method, web server and client side
CN103678536A (en) * 2013-12-02 2014-03-26 乐视网信息技术(北京)股份有限公司 Method and device for implementing page returning
CN103793426A (en) * 2012-11-01 2014-05-14 腾讯科技(深圳)有限公司 Method and device for keeping web page access records
CN103885992A (en) * 2012-12-24 2014-06-25 腾讯科技(武汉)有限公司 Method and device for controlling page display
CN103914523A (en) * 2014-03-24 2014-07-09 小米科技有限责任公司 Page rollback controlling method and page rollback controlling device
CN103955477A (en) * 2014-03-31 2014-07-30 北京奇虎科技有限公司 Method for writing and reading Cookie information in browser, device and browser
CN105786894A (en) * 2014-12-22 2016-07-20 广州市动景计算机科技有限公司 Page display method and page display equipment
US9405425B1 (en) * 2013-01-30 2016-08-02 Google Inc. Swappable content items
CN106021549A (en) * 2016-05-27 2016-10-12 青岛海信传媒网络技术有限公司 Page control method and device of web application program and terminal device
WO2017177413A1 (en) * 2016-04-14 2017-10-19 华为技术有限公司 Method and apparatus for transmitting link abnormality information, and device
CN107566356A (en) * 2017-08-24 2018-01-09 郑州云海信息技术有限公司 A kind of cloud platform browser URL authority filter methods

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102402518A (en) * 2010-09-09 2012-04-04 中国移动通信有限公司 Method and device for accessing webpage
CN103455478A (en) * 2012-05-21 2013-12-18 腾讯科技(深圳)有限公司 Webpage access accelerating method and device
CN103793426A (en) * 2012-11-01 2014-05-14 腾讯科技(深圳)有限公司 Method and device for keeping web page access records
CN103036993A (en) * 2012-12-18 2013-04-10 北京奇虎科技有限公司 Browser client-side and method of achieving website logging
CN103885992A (en) * 2012-12-24 2014-06-25 腾讯科技(武汉)有限公司 Method and device for controlling page display
US9405425B1 (en) * 2013-01-30 2016-08-02 Google Inc. Swappable content items
CN103500204A (en) * 2013-09-27 2014-01-08 北京京东尚科信息技术有限公司 Web surfing backspacing method, web server and client side
CN103678536A (en) * 2013-12-02 2014-03-26 乐视网信息技术(北京)股份有限公司 Method and device for implementing page returning
CN103914523A (en) * 2014-03-24 2014-07-09 小米科技有限责任公司 Page rollback controlling method and page rollback controlling device
CN103955477A (en) * 2014-03-31 2014-07-30 北京奇虎科技有限公司 Method for writing and reading Cookie information in browser, device and browser
CN105786894A (en) * 2014-12-22 2016-07-20 广州市动景计算机科技有限公司 Page display method and page display equipment
WO2017177413A1 (en) * 2016-04-14 2017-10-19 华为技术有限公司 Method and apparatus for transmitting link abnormality information, and device
CN106021549A (en) * 2016-05-27 2016-10-12 青岛海信传媒网络技术有限公司 Page control method and device of web application program and terminal device
CN107566356A (en) * 2017-08-24 2018-01-09 郑州云海信息技术有限公司 A kind of cloud platform browser URL authority filter methods

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108769211A (en) * 2018-05-31 2018-11-06 康键信息技术(深圳)有限公司 The method for routing and computer readable storage medium of client device, webpage
CN108769211B (en) * 2018-05-31 2022-04-12 康键信息技术(深圳)有限公司 Client device, routing method of web page, and computer-readable storage medium
CN109842621A (en) * 2019-01-25 2019-06-04 福建天泉教育科技有限公司 A kind of method and terminal reducing token storage quantity

Also Published As

Publication number Publication date
CN107807993B (en) 2021-06-15

Similar Documents

Publication Publication Date Title
US9195372B2 (en) Methods, systems, and computer program products for grouping tabbed portion of a display object based on content relationships and user interaction levels
AU2014284401B2 (en) Method and apparatus for determining user browsing behavior
US8452720B2 (en) System and methods for optimizing user interaction in web-related activites
CN102385594B (en) The kernel control method of multi-core browser and device
US20140026082A1 (en) Method and system for predictive browsing
US10229160B2 (en) Search results based on a search history
CA2985257A1 (en) System and method for ranking search results
CN109814779B (en) Menu display method and device, computer equipment and storage medium
CN108345419B (en) Information recommendation list generation method and device
US20160019310A1 (en) Method and apparatus for rendering statistics on web page visits by a browser
CN104866534A (en) Page demonstration method and device
CN111090797B (en) Data acquisition method, device, computer equipment and storage medium
WO2014118524A1 (en) Method and apparatus for accessing web sites
CN107807993B (en) Method and device for realizing webpage history recording function
CN111552795A (en) Book list page display method, electronic equipment and storage medium
CN111309413B (en) Interface display method and device, electronic equipment and storage medium
CN110020297A (en) A kind of loading method of web page contents, apparatus and system
CN116071133A (en) Cross-border electronic commerce environment analysis method and system based on big data and computing equipment
CN113626483B (en) Front-end caching method, system, equipment and storage medium for filling forms
CN105956050B (en) A kind of method of data capture, device and equipment
CN114254224A (en) Page rendering method, device, server and storage medium
CN115292627A (en) Method and device for displaying page, electronic equipment and storage medium
CN114611035A (en) Page switching method and electronic equipment
CN110020268B (en) Page returning method and device
CN105843963A (en) Website selection method and server

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
TA01 Transfer of patent application right

Effective date of registration: 20210525

Address after: 250100 West District, North First Floor, S06 Building, 1036 Langchao Road, Jinan High-tech Zone, Shandong Province

Applicant after: SHANDONG YUNMAN INTELLIGENT TECHNOLOGY Co.,Ltd.

Address before: 250100 First Floor of R&D Building 2877 Kehang Road, Sun Village Town, Jinan High-tech Zone, Shandong Province

Applicant before: SHANDONG INSPUR BUSINESS SYSTEM Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20230321

Address after: West Area, North 1st Floor, S06 Building, 1036 Langchao Road, Jinan Area, China (Shandong) Pilot Free Trade Zone, Jinan City, Shandong Province, 250000

Patentee after: Shandong Langchao Ultra HD Intelligent Technology Co.,Ltd.

Address before: 250100 West District, North First Floor, S06 Building, 1036 Langchao Road, Jinan High-tech Zone, Shandong Province

Patentee before: SHANDONG YUNMAN INTELLIGENT TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right