CN107341234B - Page display method and device and computer readable storage medium - Google Patents

Page display method and device and computer readable storage medium Download PDF

Info

Publication number
CN107341234B
CN107341234B CN201710535447.2A CN201710535447A CN107341234B CN 107341234 B CN107341234 B CN 107341234B CN 201710535447 A CN201710535447 A CN 201710535447A CN 107341234 B CN107341234 B CN 107341234B
Authority
CN
China
Prior art keywords
page
parameters
displayed
displaying
server
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.)
Active
Application number
CN201710535447.2A
Other languages
Chinese (zh)
Other versions
CN107341234A (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.)
Chengdu kugou business incubator management Co.,Ltd.
Original Assignee
Guangzhou Kugou Computer Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Kugou Computer Technology Co Ltd filed Critical Guangzhou Kugou Computer Technology Co Ltd
Priority to CN201710535447.2A priority Critical patent/CN107341234B/en
Publication of CN107341234A publication Critical patent/CN107341234A/en
Application granted granted Critical
Publication of CN107341234B publication Critical patent/CN107341234B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching

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 discloses a page display method, which comprises the following steps: when a page display instruction is received, judging whether a cache list caches page parameters of a page to be displayed corresponding to the page display instruction; when the page parameters are cached in the cache list, generating a page request according to the page parameters, and sending the page request to a corresponding server; and displaying the page fed back by the server. The invention also provides a display device of the page and a computer readable storage medium. The page parameter adopted by the page to be displayed is the page parameter of the page to be displayed opened by the user last time, so that the content of the currently displayed page to be displayed is consistent with the content of the page to be displayed last time, and the user experience is ensured.

Description

Page display method and device and computer readable storage medium
Technical Field
The present invention relates to the field of internet communications, and in particular, to a method and an apparatus for displaying a page, and a computer-readable storage medium.
Background
When a user browses a page, the content on the page changes along with the operation of the user, that is, the page parameters of the page also change.
When the same page is opened by the user, the server issues the page to the browser according to the default page parameters of the page, namely the page contents are the same when the same page is opened by the user each time; therefore, the user needs to operate the page again to browse the corresponding page content, and the user experience is reduced.
Disclosure of Invention
The invention mainly aims to provide a page display method, a page display device and a computer readable storage medium, and aims to solve the problem that when a user opens the same webpage, the user needs to operate the page again to browse corresponding page content, so that the user experience is reduced.
In order to achieve the above object, the present invention provides a method for displaying a page, including the steps of:
when a page display instruction is received, judging whether a cache list caches page parameters of a page to be displayed corresponding to the page display instruction;
when the page parameters are cached in the cache list, generating a page request according to the page parameters, and sending the page request to a corresponding server;
and displaying the page fed back by the server.
Preferably, after the step of determining whether the cache list caches the page parameter of the page to be displayed corresponding to the page display instruction, the method further includes:
when the page parameters are not cached in the cache list, generating a page request according to default page parameters, and sending the page request to a corresponding server;
and displaying the page fed back by the server.
Preferably, the method for displaying a page further includes:
when the capacity of the cache space is detected to reach a preset threshold value, judging whether a page corresponding to each page parameter of the cache space is displayed within a preset time length;
and deleting the page parameters corresponding to the pages which are not displayed within the preset time length.
Preferably, after the step of displaying the page fed back by the server, the method for displaying the page further includes:
when the operation aiming at the current display page is detected, acquiring the page parameters after the operation;
and updating the cached page parameters by adopting the page parameters.
Preferably, after the step of displaying the page fed back by the server, the method for displaying the page further includes:
when the closing of the page is detected, acquiring the current page parameters of the page to be closed;
and updating the cached page parameters by adopting the page parameters.
In order to achieve the above object, the present invention further provides a display device for a page, including:
the judging program is used for judging whether the cache list caches the page parameters of the page to be displayed corresponding to the page display instruction when the page display instruction is received;
a generating program, configured to generate a page request according to the page parameter when the page parameter is cached in the cache list, and send the page request to a corresponding server;
and the display program is used for displaying the page fed back by the server.
Preferably, the generating program is further configured to generate a page request according to a default page parameter when the page parameter is not cached in the cache list, and send the page request to a corresponding server;
and the display program is also used for displaying the page fed back by the server.
Preferably, the display means of the page further comprises a deletion program;
the judging program is further configured to judge whether a page corresponding to each page parameter of the cache space is displayed within a preset time length when it is detected that the capacity of the cache space reaches a preset threshold;
and the deleting program is used for deleting the page parameters corresponding to the pages which are not displayed within the preset time length.
Preferably, the display device of the page further includes an acquisition program and an update program;
the acquisition program is used for acquiring the page parameters after the operation when the operation aiming at the current display page is detected;
the updating program is used for updating the cached page parameters by adopting the page parameters;
the acquiring program is also used for acquiring the current page parameters of the page to be closed when the page closing is detected;
and the updating program is also used for updating the cached page parameters by adopting the page parameters.
In order to achieve the above object, the present invention further provides a computer readable storage medium, in which a page display program is stored, and when the page display program is executed by the processor, the steps of the page display method are implemented as described above.
According to the page display method, the page display device and the computer readable storage medium, when a page display instruction is received, page parameters of a page to be displayed in a cache list are obtained, then, a page request is generated according to the page parameters and sent to a server, so that the page to be displayed is displayed; because the page parameter is the page parameter after the last page to be displayed is opened, the content on the currently displayed page to be displayed is consistent with the content of the last displayed page to be displayed, and therefore the user experience is ensured.
Drawings
FIG. 1 is a diagram of a system architecture to which embodiments of the present invention relate;
fig. 2 is a schematic diagram of a hardware operating environment of a terminal according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a first embodiment of a page displaying method according to the present invention;
FIG. 4 is a flowchart illustrating a page displaying method according to a second embodiment of the present invention;
FIG. 5 is a flowchart illustrating a page display method according to a third embodiment of the present invention;
FIG. 6 is a flowchart illustrating a page displaying method according to a fourth embodiment of the present invention;
FIG. 7 is a flowchart illustrating a fifth embodiment of a page displaying method according to the present invention;
FIG. 8 is a diagram illustrating program modules of the first embodiment of the page display device according to the present invention;
FIG. 9 is a diagram illustrating program modules of a second embodiment of a page display device according to the present invention;
FIG. 10 is a diagram illustrating program modules of a third embodiment of a page display device according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The main solution of the embodiment of the invention is as follows: when a page display instruction is received, judging whether a cache list caches page parameters of a page to be displayed corresponding to the page display instruction; when the page parameters are cached in the cache list, generating a page request according to the page parameters, and sending the page request to a corresponding server;
in the prior art, when a user opens the same page, the server issues the page to the browser according to the default page parameter of the page, that is, the page contents are the same when the user opens the same page each time; therefore, the user needs to operate the page again to browse the corresponding page content, and the user experience is reduced.
The invention provides a solution, the page parameter of the page to be displayed is the page parameter after the page to be displayed last time is opened, so that the content on the currently displayed page to be displayed is consistent with the content of the page to be displayed last time, and the user experience is ensured.
As shown in fig. 1, the system architecture related to the method of the present embodiment includes a terminal and a server.
The terminal of the embodiment of the invention can be a PC, and can also be a mobile terminal device which has a display function and is provided with a browser, such as a smart phone, a tablet computer, an electronic book reader and the like.
The terminal is used for acquiring page parameters and default page parameters of the page to be displayed, generating a page request, sending the page request to the server and receiving the page to be displayed sent by the server;
and the server is used for receiving the page request sent by the terminal, acquiring the page to be displayed according to the page request, and sending the page to be displayed to the terminal by the user.
As an implementation scheme, the hardware structure of the terminal may be as shown in fig. 2.
Referring to fig. 2, the terminal may include: a processor 1001, such as a CPU, a memory 1005, a communication bus 1002, a network interface 1004, and a user interface 1003. The communication bus 1002 is used for implementing connection communication between the components in the server. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration of the terminal shown in fig. 2 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 2, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a display program of pages.
In the terminal shown in fig. 2, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to call a display program of a page stored in the memory 1005 and perform the following operations:
when a page display instruction is received, judging whether a cache list caches page parameters of a page to be displayed corresponding to the page display instruction;
when the page parameters are cached in the cache list, generating a page request according to the page parameters, and sending the page request to a corresponding server;
and displaying the page fed back by the server.
Further, the processor 1001 may call a display program of a page stored in the memory 1005, and also perform the following operations:
when the page parameters are not cached in the cache list, generating a page request according to default page parameters, and sending the page request to a corresponding server;
and displaying the page fed back by the server.
Further, the processor 1001 may call a display program of a page stored in the memory 1005, and also perform the following operations:
when the capacity of the cache space is detected to reach a preset threshold value, judging whether a page corresponding to each page parameter of the cache space is displayed within a preset time length;
and deleting the page parameters corresponding to the pages which are not displayed within the preset time length.
Further, the processor 1001 may call a display program of a page stored in the memory 1005, and also perform the following operations:
when the operation aiming at the current display page is detected, acquiring the page parameters after the operation;
and updating the cached page parameters by adopting the page parameters.
Further, the processor 1001 may call a display program of a page stored in the memory 1005, and also perform the following operations:
when the closing of the page is detected, acquiring the current page parameters of the page to be closed;
and updating the cached page parameters by adopting the page parameters.
According to the scheme, when a display instruction of the page is received, the page parameters of the page to be displayed in the cache list are obtained, then, a page request is generated according to the page parameters and is sent to the server, so that the page to be displayed is displayed; because the page parameter is the page parameter after the last page to be displayed is opened, the content on the currently displayed page to be displayed is consistent with the content of the last displayed page to be displayed, and therefore the user experience is ensured.
Based on the hardware architecture, the embodiment of the page display method is provided.
Referring to fig. 3, fig. 3 is a first embodiment of a page display method according to the present invention, where the page display method includes:
step S10, when a page display instruction is received, judging whether a cache list caches page parameters of a page to be displayed corresponding to the page display instruction;
in the invention, the page to be displayed refers to a page that a user wants to browse. The page to be displayed is stored in the server in a document form, and a user can display the page to be displayed through a browser connected with the server. The name (image or text) representing the page to be displayed is displayed on the browser page, and the user can click the name representing the page to be displayed on the browser to display the page to be displayed for browsing, of course, the user can also directly input the name of the page to be displayed in a search bar of the browser page to search for the page to be displayed, or the user can directly input the IP address of the page to be displayed in an address bar of the browser page to display. The behavior that a user clicks the name of a page to be displayed on a browser page, inputs the name of the page to be displayed on the browser page and inputs the address of the page to be displayed on an address bar of the browser page can trigger a display instruction of the page.
The page parameters of a page include the state, attributes, content, and address of the page, among others. When a user browses a page, if a page parameter of the page changes when the user operates the page, for example, when the user clicks an item on a shopping website, the page displays a pull-down menu of the item content, and at this time, the content of the page increases, and then the corresponding page parameter of the page also changes. In the invention, the page parameters cached in the page in the cache list can be updated, and certainly, the server can also receive and bind the updated page parameters and the page corresponding to the updated page parameters.
Step S20, when the page parameter is cached in the cache list, a page request is generated according to the page parameter and is sent to a corresponding server;
step S30, displaying the page fed back by the server;
the page request comprises page parameters of a page to be displayed and an acquisition request of the page to be displayed, when the server receives the page request, the server analyzes the page parameters of the page to be displayed according to the page request, then searches the page to be displayed bound with the page parameters, and sends the page to be displayed to the browser, so that the browser displays the page to be displayed.
When the user finishes browsing the page, the browser records the page parameters of the sub-page where the user is located last and uploads the page parameters to the server, and when the user browses the page next time, the user directly jumps to the sub-page. For example, a certain page contains 5 sub-pages, when a user closes the page, the browsed page is the 5 th sub-page, the browser records the page parameters of the 5 th sub-page in a cache (cache list cache), replaces the previous page parameters, uploads the page parameters of the 5 th page to the server, when the user requests to open the page again, the page parameters of the 5 th page are obtained from the cache list, generates a page request and sends the page request to the server, and the server obtains the 5 th sub-page (binding the sub-page with the parameters of the sub-page) according to the page request and sends the 5 th sub-page to the browser for display, so that the 5 th sub-page of the page is directly opened by the user instead of the 1 st sub-page. In addition, the browser can record the behaviors of the sub-pages operated by the user, reorganize and sort the contents corresponding to the operations, and when the user opens the page next time, the 1 st sub-page of the page shows the contents of the page browsed last by the user, for example, when the user views trousers of the 2 nd sub-page, shoes of the 3 rd sub-page and socks of the 4 th sub-page, then when the page is opened next time, the 1 st sub-page of the page shows the trousers, shoes and socks watched last time by the user.
The user can register an account number on a server connected with the browser, and the user account number is bound with a cache list of the browser, so that when the user opens a page opened before, the browser can directly acquire cached page parameters according to the cache list bound by the user account number, and certainly, the server can directly bind an identity of a terminal (a mobile phone or a computer) loaded with the browser with the cache list.
According to the technical scheme, when a display instruction of a page is received, page parameters of the page to be displayed in a cache list are obtained, then, a page request is generated according to the page parameters and sent to a server so as to display the page to be displayed; because the page parameter is the page parameter after the last page to be displayed is opened, the content on the currently displayed page to be displayed is consistent with the content of the last displayed page to be displayed, and therefore the user experience is ensured.
Referring to fig. 4, fig. 4 is a second embodiment of the page display method according to the present invention, and based on the above embodiment, after step S10, the method further includes: the method for displaying the page according to claim 1, wherein after the step of determining whether the first page parameter of the page to be displayed is cached in the cache list, the method further comprises:
step S40, when the page parameter is not cached in the cache list, generating a page request according to the default page parameter, and sending the page request to a corresponding server;
step S50, displaying the page fed back by the server;
when the page parameters of the page are not cached in the cache list of the browser, the browser generates a page request according to the default page parameters and sends the page request to the server, the server generates a page to be displayed according to the page analysis request and the default page parameter configuration of the page, and then the page to be displayed is sent to the browser, so that the browser displays the page to be displayed.
The following description is made with reference to specific examples:
the user inputs 'cool dog' into the browser to browse the cool dog page, and the browser is provided with default page parameters of the cool dog page, so that the browser generates a page request according to the default page parameters of the cool dog page and sends the page request to the server, the server analyzes the default page parameters of the cool dog page according to the page request, searches the cool dog page according to the default page parameters and sends the cool dog page to the browser.
When the browser does not store the default parameters of the page, that is, the user randomly inputs content, such as 'mail', the browser sends a request for displaying a mail page to the server, the server receives the request, extracts the content (mail) input by the user, then generates the page, the page is configured with all content related to the mail, and the server binds and stores the parameters represented by the content and the page and sends the parameters and the content to the browser together, so that the browser displays the page.
In the technical scheme provided by this embodiment, when the page parameter of the page to be displayed is not cached in the cache list, the page request is generated according to the default page parameter and is sent to the server, and after the server generates the page according to the page request configuration, the page is fed back to the browser, so that the browser displays the page to be displayed, and the display of the page to be displayed is more reasonable.
Referring to fig. 5, fig. 5 is a third embodiment of the page display method according to the present invention, and based on any one of the first to second embodiments, the page display method further includes:
step S60, when the capacity of the cache space is detected to reach a preset threshold value, judging whether the page corresponding to each page parameter of the cache space is displayed within a preset time length;
step S70, deleting the page parameters corresponding to the page which is not displayed in the preset duration;
when a user browses a page each time, the terminal caches the page parameters of the page in the cache list, and the capacity of the cache space of the terminal is limited, so that when the capacity of data stored in the cache space of the terminal reaches a certain value (preset threshold), some page parameters which are not commonly used in the cache list in the cache space need to be cleared to vacate the space.
When the page parameters of the page are cached in the cache list, the cache time moment of the page parameters is also recorded, and when the page parameters need to be cleared, if the time interval between the page parameter cache time point of the page and the current time point is longer than the preset time length, the terminal clears the page parameters.
If the page corresponding to the page parameter is set by the terminal and is not displayed within 7 days, deleting the page parameter, for example, if the cache time point of a certain page parameter is 2017, month 1, 12 and 30 minutes, and the time point of the terminal for clearing the page parameter is 2017, month 1, 9, 12 and 30 minutes, and the time interval is 8 days, deleting the page parameter by the terminal. The preset time period may be any suitable value.
According to the technical scheme, when the capacity of the cache space reaches a certain value, the page parameters corresponding to the page which is not displayed within the preset time length are deleted, so that the user can store the page parameters of the browsed page, and the user experience is guaranteed.
Referring to fig. 6, fig. 6 is a fourth embodiment of the page display method according to the present invention, and based on any one of the first to third embodiments, after step S30, the method further includes:
step S80, when detecting the operation aiming at the current display page, obtaining the page parameter after the operation;
step S90, updating the cached page parameters by adopting the page parameters;
and displaying the page to be displayed, updating the page parameters of the page to be displayed after detecting the operation based on the page to be displayed, and sending the updated page parameters and the updated page to be displayed to the server. After the page to be displayed is displayed, the user operates the page, the page changes according to the operation of the user, the page parameters of the page also change, and the terminal sends the changed page and the page parameters to the server, so that the user opens the page next time and displays the page content browsed by the current user. By adopting the mode, when the page is abnormally closed, the browser can recover the page operated by the user for the last time according to the randomly updated page parameters.
In the technical scheme provided by this embodiment, after the page to be displayed is displayed, if the user operates the page, the page parameters of the page may change, and the cache list may update the page parameters of the page, so that when the user opens the page next time, browsing is an updated page, and the user experience is increased.
Referring to fig. 7, fig. 7 is a fifth embodiment of the page displaying method according to the present invention, and based on any one of the first to third embodiments, after step S30, the method further includes:
step S100, when the closing of the page is detected, acquiring the current page parameters of the page to be closed;
step S110, updating cached page parameters by adopting the page parameters;
when the page is closed, the browser acquires the page parameters of the page at the moment and caches the page parameters in the cache list. By adopting the mode, the cache list of the browser does not need to update the page parameters of the page all the time, and the operation of the browser is reduced.
In the technical scheme provided by this embodiment, when the page is closed, the page parameters of the page at the moment are cached in the cache list, so that the browser does not need to update the page parameters of the page all the time, and the operation of the browser is reduced.
Referring to fig. 8, fig. 8 is a first embodiment of a display apparatus of a page of the present invention, which includes a judgment program 10, a generation program 20, and a display program 30;
the judging program 10 is configured to, when a page display instruction is received, judge whether a cache list caches a page parameter of a page to be displayed corresponding to the page display instruction;
in the invention, the page to be displayed refers to a page that a user wants to browse. The page to be displayed is stored in the server in a document form, and a user can display the page to be displayed through a browser connected with the server. The name (image or text) representing the page to be displayed is displayed on the browser page, and the user can click the name representing the page to be displayed on the browser to display the page to be displayed for browsing, of course, the user can also directly input the name of the page to be displayed in a search bar of the browser page to search for the page to be displayed, or the user can directly input the IP address of the page to be displayed in an address bar of the browser page to display. The behavior that a user clicks the name of a page to be displayed on a browser page, inputs the name of the page to be displayed on the browser page and inputs the address of the page to be displayed on an address bar of the browser page can trigger a display instruction of the page.
The page parameters of a page include the state, attributes, content, and address of the page, among others. When a user browses a page, if a page parameter of the page changes when the user operates the page, for example, when the user clicks an item on a shopping website, the page displays a pull-down menu of the item content, and at this time, the content of the page increases, and then the corresponding page parameter of the page also changes. In the invention, the page parameters cached in the page in the cache list can be updated, and certainly, the server can also receive and bind the updated page parameters and the page corresponding to the updated page parameters.
The generating program 20 is configured to generate a page request according to the page parameter when the page parameter is cached in the cache list, and send the page request to a corresponding server;
the display program 30 is configured to display a page fed back by the server;
the page request comprises page parameters of a page to be displayed and an acquisition request of the page to be displayed, when the server receives the page request, the server analyzes the page parameters of the page to be displayed according to the page request, then searches the page to be displayed bound with the page parameters, and sends the page to be displayed to the browser, so that the browser displays the page to be displayed.
When the user finishes browsing the page, the browser records the page parameters of the sub-page where the user is located last and uploads the page parameters to the server, and when the user browses the page next time, the user directly jumps to the sub-page. For example, a certain page contains 5 sub-pages, when a user closes the page, the browsed page is the 5 th sub-page, the browser records the page parameters of the 5 th sub-page in a cache (cache list cache), replaces the previous page parameters, uploads the page parameters of the 5 th page to the server, when the user requests to open the page again, the page parameters of the 5 th page are obtained from the cache list, generates a page request and sends the page request to the server, and the server obtains the 5 th sub-page (binding the sub-page with the parameters of the sub-page) according to the page request and sends the 5 th sub-page to the browser for display, so that the 5 th sub-page of the page is directly opened by the user instead of the 1 st sub-page. In addition, the browser can record the behaviors of the sub-pages operated by the user, reorganize and sort the contents corresponding to the operations, and when the user opens the page next time, the 1 st sub-page of the page shows the contents of the page browsed last by the user, for example, when the user views trousers of the 2 nd sub-page, shoes of the 3 rd sub-page and socks of the 4 th sub-page, then when the page is opened next time, the 1 st sub-page of the page shows the trousers, shoes and socks watched last time by the user.
The user can register an account number on a server connected with the browser, and the user account number is bound with a cache list of the browser, so that when the user opens a page opened before, the browser can directly acquire cached page parameters according to the cache list bound by the user account number, and certainly, the server can directly bind an identity of a terminal (a mobile phone or a computer) loaded with the browser with the cache list.
According to the technical scheme, when a display instruction of a page is received, page parameters of the page to be displayed in a cache list are obtained, then, a page request is generated according to the page parameters and sent to a server so as to display the page to be displayed; because the page parameter is the page parameter after the last page to be displayed is opened, the content on the currently displayed page to be displayed is consistent with the content of the last displayed page to be displayed, and therefore the user experience is ensured.
Based on the embodiment shown in fig. 8, the generating program 20 is further configured to generate a page request according to a default page parameter when the page parameter is not cached in the cache list, and send the page request to a corresponding server;
the display program 30 is further configured to display a page fed back by the server;
when the page parameters of the page are not cached in the cache list of the browser, the browser generates a page request according to the default page parameters and sends the page request to the server, the server generates a page to be displayed according to the page analysis request and the default page parameter configuration of the page, and then the page to be displayed is sent to the browser, so that the browser displays the page to be displayed.
The following description is made with reference to specific examples:
the user inputs 'cool dog' into the browser to browse the cool dog page, and the browser is provided with default page parameters of the cool dog page, so that the browser generates a page request according to the default page parameters of the cool dog page and sends the page request to the server, the server analyzes the default page parameters of the cool dog page according to the page request, searches the cool dog page according to the default page parameters and sends the cool dog page to the browser.
When the browser does not store the default parameters of the page, that is, the user randomly inputs content, such as 'mail', the browser sends a request for displaying a mail page to the server, the server receives the request, extracts the content (mail) input by the user, then generates the page, the page is configured with all content related to the mail, and the server binds and stores the parameters represented by the content and the page and sends the parameters and the content to the browser together, so that the browser displays the page.
In the technical scheme provided by this embodiment, when the page parameter of the page to be displayed is not cached in the cache list, the page request is generated according to the default page parameter and is sent to the server, and after the server generates the page according to the page request configuration, the page is fed back to the browser, so that the browser displays the page to be displayed, and the display of the page to be displayed is more reasonable.
Referring to fig. 9, fig. 9 is a second embodiment of the display device of the page of the present invention, and based on the first embodiment, the display device of the page further includes a deleting program 40;
the interpretation program 10 is further configured to, when it is detected that the capacity of the cache space reaches a preset threshold, determine whether a page corresponding to each page parameter of the cache space is displayed within a preset time period;
the deleting program 40 is configured to delete a page parameter corresponding to a page that is not displayed within the preset duration;
when a user browses a page each time, the terminal caches the page parameters of the page in the cache list, and the capacity of the cache space of the terminal is limited, so that when the capacity of data stored in the cache space of the terminal reaches a certain value (preset threshold), some page parameters which are not commonly used in the cache list in the cache space need to be cleared to vacate the space.
When the page parameters of the page are cached in the cache list, the cache time moment of the page parameters is also recorded, and when the page parameters need to be cleared, if the time interval between the page parameter cache time point of the page and the current time point is longer than the preset time length, the terminal clears the page parameters.
If the page corresponding to the page parameter is set by the terminal and is not displayed within 7 days, deleting the page parameter, for example, if the cache time point of a certain page parameter is 2017, month 1, 12 and 30 minutes, and the time point of the terminal for clearing the page parameter is 2017, month 1, 9, 12 and 30 minutes, and the time interval is 8 days, deleting the page parameter by the terminal. The preset time period may be any suitable value.
According to the technical scheme, when the capacity of the cache space reaches a certain value, the page parameters corresponding to the page which is not displayed within the preset time length are deleted, so that the user can store the page parameters of the browsed page, and the user experience is guaranteed.
Referring to fig. 10, fig. 10 shows a third embodiment of the apparatus for displaying a page according to the present invention, which further includes an acquiring program 50 and an updating program 60
The acquiring program 50 is configured to, when an operation for a currently displayed page is detected, acquire a page parameter after the operation;
the updating program 60 is configured to update the cached page parameters by using the page parameters;
and displaying the page to be displayed, updating the page parameters of the page to be displayed after detecting the operation based on the page to be displayed, and sending the updated page parameters and the updated page to be displayed to the server. After the page to be displayed is displayed, the user operates the page, the page changes according to the operation of the user, the page parameters of the page also change, and the terminal sends the changed page and the page parameters to the server, so that the user opens the page next time and displays the page content browsed by the current user. By adopting the mode, when the page is abnormally closed, the browser can recover the page operated by the user for the last time according to the randomly updated page parameters.
In the technical scheme provided by this embodiment, after the page to be displayed is displayed, if the user operates the page, the page parameters of the page may change, and the cache list may update the page parameters of the page, so that when the user opens the page next time, browsing is an updated page, and the user experience is increased.
Based on the embodiment shown in fig. 10, the obtaining program 50 is further configured to obtain a current page parameter of a page to be closed when detecting that the page is closed;
the updating program 60 is further configured to update the cached page parameters by using the page parameters;
when the page is closed, the browser acquires the page parameters of the page at the moment and caches the page parameters in the cache list. By adopting the mode, the cache list of the browser does not need to update the page parameters of the page all the time, and the operation of the browser is reduced.
In the technical scheme provided by this embodiment, when the page is closed, the page parameters of the page at the moment are cached in the cache list, so that the browser does not need to update the page parameters of the page all the time, and the operation of the browser is reduced.
The present invention also provides a computer-readable storage medium, in which a display program of a page is stored, and when executed by the processor, the steps of the display method of a page according to the above embodiment are implemented.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a television, a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A method for displaying a page is characterized by comprising the following steps:
when a page display instruction is received, judging whether a cache list caches page parameters of a page to be displayed corresponding to the page display instruction, wherein the page parameters comprise the content of the page to be displayed, and when at least two sub-pages exist in the page to be displayed, optimizing the page parameters according to the operation of a user on the sub-pages;
when the page parameters are cached in the cache list, generating a page request according to the page parameters, and sending the page request to a corresponding server;
and displaying the page fed back by the server, wherein the fed-back page is displayed on the same page after recombining, sequencing and updating the operated contents in the sub-page according to the page parameters.
2. The method for displaying a page according to claim 1, wherein after the step of determining whether the cache list caches the page parameter of the page to be displayed corresponding to the page display instruction, the method further comprises:
when the page parameters are not cached in the cache list, generating a page request according to default page parameters, and sending the page request to a corresponding server;
and displaying the page fed back by the server.
3. The method for displaying a page of claim 1, further comprising:
when the capacity of the cache space is detected to reach a preset threshold value, judging whether a page corresponding to each page parameter of the cache space is displayed within a preset time length;
and deleting the page parameters corresponding to the pages which are not displayed within the preset time length.
4. The method for displaying a page according to any one of claims 1 to 3, wherein after the step of displaying the page fed back by the server, the method for displaying a page further comprises:
when the operation aiming at the current display page is detected, acquiring the page parameters after the operation;
and updating the cached page parameters by adopting the page parameters.
5. The method for displaying a page according to any one of claims 1 to 3, wherein after the step of displaying the page fed back by the server, the method for displaying a page further comprises:
when the closing of the page is detected, acquiring the current page parameters of the page to be closed;
and updating the cached page parameters by adopting the page parameters.
6. A display device of a page, characterized in that the display device of the page comprises:
the system comprises a judging program module, a cache list and a display control module, wherein the judging program module is used for judging whether a cache list caches page parameters of a to-be-displayed page corresponding to a page display instruction when the page display instruction is received, the page parameters comprise contents of the to-be-displayed page, and when at least two sub-pages exist in the to-be-displayed page, the page parameters are recombined, ordered and updated according to user operation;
the generating program module is used for generating a page request according to the page parameters when the page parameters are cached in the cache list and sending the page request to a corresponding server;
and the display program module is used for displaying the page fed back by the server, and the fed-back page has contents corresponding to at least two sub-pages at the same time.
7. The device for displaying a page according to claim 6, wherein the generating program module is further configured to generate a page request according to a default page parameter and send the page request to a corresponding server when the page parameter is not cached in the cache list;
and the display program module is also used for displaying the page fed back by the server.
8. The apparatus for displaying a page of claim 6, wherein the apparatus for displaying a page further comprises a delete program module;
the judging program module is further configured to judge whether a page corresponding to each page parameter of the cache space is displayed within a preset time length when it is detected that the capacity of the cache space reaches a preset threshold;
and the deleting program module is used for deleting the page parameters corresponding to the pages which are not displayed within the preset time length.
9. The apparatus for displaying a page of any one of claims 6 to 8, wherein the apparatus for displaying a page further comprises an acquisition program module and an update program module;
the acquisition program module is used for acquiring the page parameters after the operation when the operation aiming at the current display page is detected;
the updating program module is used for updating the cached page parameters by adopting the page parameters;
the acquiring program module is also used for acquiring the current page parameters of the page to be closed when the page closing is detected;
the updating program module is also used for updating the cached page parameters by adopting the page parameters.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a display program of a page, which when executed by a processor implements the steps of the display method of a page according to any one of claims 1 to 5.
CN201710535447.2A 2017-06-30 2017-06-30 Page display method and device and computer readable storage medium Active CN107341234B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710535447.2A CN107341234B (en) 2017-06-30 2017-06-30 Page display method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710535447.2A CN107341234B (en) 2017-06-30 2017-06-30 Page display method and device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN107341234A CN107341234A (en) 2017-11-10
CN107341234B true CN107341234B (en) 2021-04-13

Family

ID=60218296

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710535447.2A Active CN107341234B (en) 2017-06-30 2017-06-30 Page display method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN107341234B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113434234B (en) * 2021-06-29 2023-06-09 青岛海尔科技有限公司 Page jump method, device, computer readable storage medium and processor
CN113722628B (en) * 2021-08-31 2022-10-28 北京百度网讯科技有限公司 Method, apparatus, device and medium for displaying information stream
CN113849255B (en) * 2021-09-17 2024-04-16 北京达佳互联信息技术有限公司 Data processing method, device and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102902805A (en) * 2012-10-15 2013-01-30 东软集团股份有限公司 Page access method and device
CN102982044A (en) * 2011-09-07 2013-03-20 腾讯科技(深圳)有限公司 Method and device for webpage browsing
CN104978385A (en) * 2015-03-19 2015-10-14 腾讯科技(深圳)有限公司 Information processing method, browser client and terminal
CN105302846A (en) * 2014-08-01 2016-02-03 腾讯科技(北京)有限公司 Method and device for restoring webpage
CN106503179A (en) * 2016-10-31 2017-03-15 维沃移动通信有限公司 A kind of loading method of Webpage and mobile terminal
CN106528627A (en) * 2016-10-01 2017-03-22 奇酷互联网络科技(深圳)有限公司 Method and apparatus for loading and locating webpage browsing position
CN106897347A (en) * 2016-08-15 2017-06-27 阿里巴巴集团控股有限公司 A kind of web page display method, Action Events recording method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8005946B2 (en) * 2007-09-10 2011-08-23 Microsoft Corporation Managing navigation history for intra-page state transitions

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102982044A (en) * 2011-09-07 2013-03-20 腾讯科技(深圳)有限公司 Method and device for webpage browsing
CN102902805A (en) * 2012-10-15 2013-01-30 东软集团股份有限公司 Page access method and device
CN105302846A (en) * 2014-08-01 2016-02-03 腾讯科技(北京)有限公司 Method and device for restoring webpage
CN104978385A (en) * 2015-03-19 2015-10-14 腾讯科技(深圳)有限公司 Information processing method, browser client and terminal
CN106897347A (en) * 2016-08-15 2017-06-27 阿里巴巴集团控股有限公司 A kind of web page display method, Action Events recording method and device
CN106528627A (en) * 2016-10-01 2017-03-22 奇酷互联网络科技(深圳)有限公司 Method and apparatus for loading and locating webpage browsing position
CN106503179A (en) * 2016-10-31 2017-03-15 维沃移动通信有限公司 A kind of loading method of Webpage and mobile terminal

Also Published As

Publication number Publication date
CN107341234A (en) 2017-11-10

Similar Documents

Publication Publication Date Title
CN106294648B (en) Processing method and device for page access path
US10515142B2 (en) Method and apparatus for extracting webpage information
CN103139292B (en) Method for processing pictures in hyper text transmission protocol (HTTP) proxy and proxy server and system
US10542123B2 (en) System and method for generating and monitoring feedback of a published webpage as implemented on a remote client
CN105302811B (en) Browser page skipping method and device
CN104243273A (en) Method and device for displaying information on instant messaging client and information display system
CN110020278A (en) Displaying, providing method, client and the server of page data
US9418159B2 (en) Search controls using sliders and lightboxes
US20120147037A1 (en) Information display device, information display method, information display program, recording medium and information display system
CN107679214B (en) Link positioning method, device, terminal and computer readable storage medium
CN107040584B (en) Method and device for downloading picture by client
CN105095107A (en) Buffer memory data cleaning method and apparatus
US8959434B2 (en) Add-in program for upload, auxiliary program for upload and upload method
CN103118081B (en) Server, client, the system and method for browsing pages in prestrain browser
CN106528587B (en) Page display method and device in composite webpage system
CN107341234B (en) Page display method and device and computer readable storage medium
US20180157754A1 (en) Access to network content
US8825756B2 (en) Server apparatus, information processing method, information processing program, and recording medium
US20140331114A1 (en) Methods and apparatuses for obtaining and sharing partial content of a webpage
CN104572777A (en) Webpage loading method and device based on UIWebView component
CN111177623A (en) Information processing method and device
CN102769641A (en) Method and system for displaying webpage content by means of self-adaption control
CN106294844A (en) Browsing device net page loading processing method and device
CN110020242A (en) A kind of document reading progress synchronous method and device based on Web
WO2017092455A1 (en) Method for web browsing in mobile terminal, and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 510000 Guangzhou City, Guangzhou, Guangdong, Whampoa Avenue, No. 315, self - made 1-17

Applicant after: Guangzhou KuGou Networks Co., Ltd.

Address before: 510000 Guangzhou City, Guangzhou, Guangdong Province, Tianhe District Ke Yun Road, No. 16 self compiled 2 rooms (the residence limit for this residence)

Applicant before: Guangzhou KuGou Networks Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220406

Address after: 4119, 41st floor, building 1, No.500, middle section of Tianfu Avenue, Chengdu hi tech Zone, China (Sichuan) pilot Free Trade Zone, Chengdu, Sichuan 610000

Patentee after: Chengdu kugou business incubator management Co.,Ltd.

Address before: 510000 No.315, Huangpu Avenue, Tianhe District, Guangzhou City, Guangdong Province

Patentee before: GUANGZHOU KUGOU COMPUTER TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right