CN106126683B - Page display method and terminal equipment - Google Patents

Page display method and terminal equipment Download PDF

Info

Publication number
CN106126683B
CN106126683B CN201610498192.2A CN201610498192A CN106126683B CN 106126683 B CN106126683 B CN 106126683B CN 201610498192 A CN201610498192 A CN 201610498192A CN 106126683 B CN106126683 B CN 106126683B
Authority
CN
China
Prior art keywords
page
displayed
element information
page element
information corresponding
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
CN201610498192.2A
Other languages
Chinese (zh)
Other versions
CN106126683A (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.)
Qingdao Hisense Media Network Technology Co Ltd
Original Assignee
Qingdao Hisense Media Network 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 Qingdao Hisense Media Network Technology Co Ltd filed Critical Qingdao Hisense Media Network Technology Co Ltd
Priority to CN201610498192.2A priority Critical patent/CN106126683B/en
Publication of CN106126683A publication Critical patent/CN106126683A/en
Application granted granted Critical
Publication of CN106126683B publication Critical patent/CN106126683B/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/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • G06F16/986Document structures and storage, e.g. HTML extensions

Abstract

The embodiment of the invention provides a page display method and terminal equipment, wherein the method comprises the following steps: receiving a page viewing instruction input by a user, wherein the page viewing instruction is used for requesting to display a page to be displayed; judging whether page element information corresponding to a page to be displayed exists in the terminal equipment; if so, acquiring page element information in the terminal equipment, generating a Document Object Model (DOM) element corresponding to the page to be requested according to the page element information, and displaying the page to be displayed according to the DOM element; and if not, requesting the page server to acquire the page to be displayed, and displaying the page to be displayed. For improving the efficiency of page display.

Description

Page display method and terminal equipment
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a page display method and terminal equipment.
Background
Currently, a user can view a web page and a page in a web application (hereinafter, collectively referred to as a page) through a browser in a terminal device.
In the prior art, in the process of browsing a page by a user through a terminal device, when the user needs to view any page, the terminal device is required to request a page server to acquire corresponding page information. In order to ensure the security of data transmission, the terminal device needs to establish connection with the page server and perform three-way handshake, and then the terminal device sends a page request message to the page server to obtain corresponding page information, and processes the page information obtained by the request to display the page.
However, in the above process, it takes a long time for the terminal device to establish a connection with the page server and perform three-way handshake, so that the speed of acquiring the page information by the terminal device is slow, and the terminal device needs to process the page information to display the page, which results in low efficiency of displaying the page by the terminal device.
Disclosure of Invention
The embodiment of the invention provides a page display method and terminal equipment, which are used for improving page display efficiency.
In a first aspect, an embodiment of the present invention provides a page display method, which is applied to a terminal device, and the method includes:
receiving a page viewing instruction input by a user, wherein the page viewing instruction is used for requesting to display a page to be displayed;
judging whether page element information corresponding to the page to be displayed exists in the terminal equipment;
if so, acquiring page element information in the terminal equipment, generating a Document Object Model (DOM) element corresponding to the page to be requested according to the page element information, and displaying the page to be displayed according to the DOM element;
and if not, requesting a page server to acquire the page to be displayed, and displaying the page to be displayed.
In a possible implementation manner, the displaying the page to be displayed according to the DOM element includes:
determining an original page currently displayed by the terminal equipment, wherein the page to be displayed is a sub-page in the original page;
and setting the state of the DOM element as a display state in the original page, so as to display the page to be displayed in the original page.
In another possible implementation manner, the acquiring page element information in the terminal device includes:
acquiring a page element set corresponding to the page to be requested, wherein the page element set comprises page element information corresponding to at least two pages;
and acquiring page element information corresponding to the page to be requested in the page element set.
In another possible implementation manner, the page viewing instruction includes a page transmission parameter; the page element set comprises private page element information and public page element information corresponding to at least two pages, wherein the public page element information is the same page element information corresponding to the at least two pages;
correspondingly, obtaining the page element information corresponding to the page to be requested in the page element set includes:
according to the identification of the page to be displayed, acquiring private page element information corresponding to the identification of the page to be displayed in the page element information set;
and acquiring the public page element information corresponding to the page to be displayed in the public page element information according to the page transmission parameter.
In another possible embodiment, the page element information includes at least one of the following files: hypertext markup language HTML files, cascading style sheet CSS files, JavaScript files.
In a second aspect, an embodiment of the present invention provides a terminal device, including:
the device comprises a receiving module, a display module and a display module, wherein the receiving module is used for receiving a page viewing instruction input by a user, and the page viewing instruction is used for requesting to display a page to be displayed;
the judging module is used for judging whether page element information corresponding to the page to be displayed exists in the terminal equipment;
the first obtaining module is used for obtaining the page element information in the terminal equipment when the judging module judges that the page element information corresponding to the page to be displayed exists in the terminal equipment;
the generating module is used for generating a Document Object Model (DOM) element corresponding to the page to be requested according to the page element information;
the display module is used for displaying the page to be displayed according to the DOM element;
and the second obtaining module is used for requesting a page server to obtain the page to be displayed when the judging module judges that the page element information corresponding to the page to be displayed does not exist in the terminal equipment, so that the display module displays the page to be displayed.
In a possible implementation, the display module is specifically configured to:
determining an original page currently displayed by the terminal equipment, wherein the page to be displayed is a sub-page in the original page;
and setting the state of the DOM element as a display state in the original page, so as to display the page to be displayed in the original page.
In another possible embodiment, the first obtaining module comprises a first obtaining unit and a second obtaining unit, wherein,
the first obtaining unit is configured to obtain a page element set corresponding to the page to be requested, where the page element set includes page element information corresponding to at least two pages;
the second obtaining unit is configured to obtain, in the page element set, page element information corresponding to the page to be requested.
In another possible implementation manner, the page viewing instruction includes a page transmission parameter; the page element set comprises private page element information and public page element information corresponding to at least two pages, wherein the public page element information is the same page element information corresponding to the at least two pages;
correspondingly, the second obtaining unit is specifically configured to:
according to the identification of the page to be displayed, acquiring private page element information corresponding to the identification of the page to be displayed in the page element information set;
and acquiring the public page element information corresponding to the page to be displayed in the public page element information according to the page transmission parameter.
In another possible embodiment, the page element information includes at least one of the following files: hypertext markup language HTML files, cascading style sheet CSS files, JavaScript files.
According to the page display method and the terminal device provided by the embodiment of the invention, after the terminal device receives the page viewing instruction input by the user, if the terminal device locally has the page element information corresponding to the page to be displayed, the terminal device obtains the page element information in the local, generates the Document Object Model (DOM) element corresponding to the page to be requested according to the page element information, and displays the page to be displayed according to the DOM element, so that the terminal device does not need to request the page server to obtain the page information, and the page display efficiency of the terminal device is improved. If the page element information corresponding to the page to be displayed exists locally in the terminal equipment, the page to be displayed is requested to be obtained from the page server, and the page to be displayed is directly displayed.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be 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 schematic view of an application scenario of a page display method provided by the present invention;
FIG. 2 is a schematic flow chart of a page display method according to the present invention;
FIG. 3 is a schematic flow chart illustrating a method for displaying a page to be displayed according to the present invention;
FIG. 4 is a schematic flow chart of a method for acquiring page element information according to the present invention;
FIG. 5 is a schematic diagram of a terminal interface provided by the present invention;
fig. 6 is a first schematic structural diagram of a terminal device provided in the present invention;
fig. 7 is a schematic structural diagram of a terminal device provided by the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic view of an application scenario of the page display method provided by the present invention, please refer to fig. 1, which includes a terminal device 101 and a page server 102, and optionally, the terminal device may be a computer, a mobile phone, or other devices. A user can browse a web page, a web application page (hereinafter, collectively referred to as a page), and the like through the terminal apparatus 101, and the page server 102 can provide data information for page display to the terminal apparatus 101. In this application, when the terminal device displays a page, the terminal device 101 may locally obtain page element information at the terminal device and display the page according to the page element information, or the terminal device 101 may also request the page server 102 to obtain a page generated by the page server 102 and directly display the page generated by the page server. The technical means shown in the present application will be described in detail below with reference to specific examples.
It should be noted that the following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
Fig. 2 is a schematic flowchart of a page display method provided by the present invention, where an execution subject of the method is a terminal device, please refer to fig. 2, and the method may include:
s201, receiving a page viewing instruction input by a user, wherein the page viewing instruction is used for requesting to display a page to be displayed;
s202, judging whether page element information corresponding to a page to be displayed exists in the terminal equipment;
if yes, go to S203;
if not, executing S204;
s203, acquiring page element information in the terminal equipment, generating a Document Object Model (DOM) element corresponding to the page to be requested according to the page element information, and displaying the page to be displayed according to the DOM element;
and S204, requesting the page server to acquire the page to be displayed, and displaying the page to be displayed.
In the embodiment of the invention, in the process of browsing the page by the user through the terminal equipment, the page element information of a plurality of pages can be cached in the terminal equipment, and the cached page element information can be obtained by requesting the page server to obtain when the user browses the preset page. For example, when the user needs to browse page 1, the terminal device requests the page server to acquire page 1, and also requests the page server to acquire page element information of pages 2 to 5, and caches the page element information of pages 2 to 5. Of course, the page element information cached by the terminal device may also be page element information of a user history browsing page.
In an actual application process, a browser may be installed in the terminal device, so that a user may browse a page through the browser in the terminal device. When a user needs to browse a page, the user may input a page viewing instruction in the terminal device, optionally, the user may click a preset icon (for example, a link icon) in the page, so that the terminal device obtains the page viewing instruction input by the user, where the page viewing instruction is used to request the terminal device to display the page to be displayed, and optionally, the page viewing instruction may include an identifier of the page to be displayed.
After the terminal equipment receives a page viewing instruction input by a user, the terminal equipment judges whether page element information corresponding to a page to be displayed exists in the terminal equipment.
If the page element information corresponding to the page to be displayed exists in the terminal device, the terminal device obtains the page element information locally, and optionally, the page element information includes at least one of the following files: HyperText Markup Language (HTML) files, Cascading Style Sheets (CSS) files, and JavaScript files. The terminal device generates a Document Object Model (DOM) element corresponding to the page to be requested according to the page element information, and displays the page to be displayed according to the DOM element.
And if the page element information corresponding to the page to be displayed does not exist in the terminal equipment, requesting the page server to acquire the page to be displayed and displaying the page to be displayed. Optionally, the terminal device may send page request information including an identifier of the page to be displayed to the page server, so that the page server generates the page to be displayed according to the page request information, and sends the page to be displayed to the terminal device.
According to the page display method provided by the embodiment of the invention, after the terminal equipment receives the page viewing instruction input by the user, if the terminal equipment locally has the page element information corresponding to the page to be displayed, the terminal equipment obtains the page element information in the local, generates the Document Object Model (DOM) element corresponding to the page to be requested according to the page element information, and displays the page to be displayed according to the DOM element, so that the terminal equipment does not need to request the page server to obtain the page information, and the page display efficiency of the terminal equipment is improved. If the page element information corresponding to the page to be displayed exists locally in the terminal equipment, the page to be displayed is requested to be obtained from the page server, and the page to be displayed is directly displayed.
On the basis of the embodiment shown in fig. 2, optionally, the page to be displayed may be displayed according to the DOM element through the following feasible implementation manner (S203 in the embodiment shown in fig. 2), specifically, please refer to the embodiment shown in fig. 3.
Fig. 3 is a schematic flow chart of a method for displaying a page to be displayed according to the present invention, please refer to fig. 3, the method may include:
s301, determining an original page currently displayed by the terminal equipment, wherein the page to be displayed is a sub-page in the original page;
s302, in the original page, setting the state of the DOM element to be a display state so as to display the page to be displayed in the original page.
In the embodiment shown in fig. 3, one original page includes a plurality of sub-pages, where the page to be displayed is any one of the plurality of sub-pages of the original page. Each sub page corresponds to one DOM element in the original page, and the sub page displayed in the original page can be determined by controlling the state (display state or hidden state) of each DOM element.
In the practical application process, when a page to be displayed needs to be displayed, the terminal device firstly determines an original page which is currently displayed, and the page to be displayed is a sub-page of the original page. Then, in the original page, the original state of the DOM is set as a display state, and simultaneously the states of other sub-pages of the original page are set as hidden states, so that the page to be displayed is displayed in the original page.
In the process, the display of the page to be displayed in the original page can be controlled by setting the state of the DOM element corresponding to the page to be displayed, so that the display efficiency of the page to be displayed is further improved.
On the basis of any of the above embodiments, the page element information may be obtained in the terminal device through the following feasible implementation manners (S203 in the embodiment shown in fig. 2), specifically, please refer to the embodiment shown in fig. 4.
Fig. 4 is a schematic flowchart of a method for acquiring page element information according to the present invention, please refer to fig. 4, where the method may include:
s401, acquiring a page element set corresponding to a page to be requested, wherein the page element set comprises page element information corresponding to at least two pages;
s402, acquiring page element information corresponding to the page to be requested in the page element set.
In the embodiment shown in fig. 4, when the terminal device needs to display the page to be displayed and the terminal device includes the page element information corresponding to the page to be displayed, the terminal device locally obtains the page element information corresponding to the page to be displayed.
When the terminal equipment stores the page element information, the terminal equipment stores the page element information in a page element information set form, and one page element information set comprises page element information corresponding to at least two pages. The page element information in one page element information set can be obtained by a terminal device requesting a page server through one request.
In an actual application process, when the page element information of the page to be displayed needs to be acquired in the terminal device, the terminal device may first acquire, according to the identifier of the page to be displayed, a page element information set corresponding to the identifier of the page to be displayed in the terminal device, and acquire, in the page element information set, the page element information of the page to be displayed.
Optionally, the page element information in the page element information set may be stored in multiple ways, and when the page element information in the page element information set is stored in different ways, the process of obtaining the page element information of the page to be displayed in the page element information set is different, specifically, the following two possible implementation manners are included:
one possible implementation is: the page element information set comprises page element information corresponding to at least two pages.
In this feasible implementation manner, the page element information of each page in the page element information set is stored separately, and optionally, the storage manner of the page element information in the page element information set may be as shown in table 1:
TABLE 1
Figure BDA0001035459780000081
In an actual application process, the terminal device may obtain, according to the identifier of the page to be displayed, page element information corresponding to the identifier of the page to be displayed in the page element information set.
In the process, the terminal device can acquire the corresponding page element information in the page element information set only according to the identifier of the page to be displayed, so that the terminal device can quickly acquire the page element information corresponding to the page to be displayed.
Another possible implementation: the page element set comprises private page element information and public page element information corresponding to at least two pages, and the public page element information is the same page element information corresponding to the at least two pages;
in this possible implementation manner, the page element information of the page to be displayed includes part or all of the private page element information and the public page element information of the page to be displayed. Optionally, a storage manner of the page element information in the page element information set may be as shown in table 2:
TABLE 2
Figure BDA0001035459780000091
In the practical application process, when the terminal device needs to acquire the page element information of the page to be displayed in the page element information set, the terminal device acquires the private page element information corresponding to the identifier of the page to be displayed in the page element information set according to the identifier of the page to be displayed, and acquires the public page element information corresponding to the page to be displayed in the public page element information. Optionally, the page viewing instruction further includes a page transmission parameter, and correspondingly, the terminal device may obtain, according to the page transmission parameter, common page element information corresponding to the page to be displayed in the common page element information.
In the above process, the same page element information included in each page in the page element information set is stored in the common page element information set by setting the common page element information in the page element information set. Therefore, when the data server sends the page element information set to the terminal equipment, the data server can be prevented from sending repeated page element information to the terminal equipment, and the efficiency of sending the page element information set to the terminal equipment by the data server is improved.
On the basis of any one of the above embodiments, in the process that the terminal device requests the page server to acquire the page to be displayed, in order to reduce the number of times of interaction between the terminal device and the page server, the terminal device may request the page server to acquire the page to be displayed and, at the same time, may also request the page server to acquire the page element information of the associated page corresponding to the page to be displayed. When the terminal device receives the page element information of the associated page corresponding to the page to be displayed, the page element information of the associated page may be cached first.
Optionally, in the process of developing the web page, a developer may set a corresponding relationship between the page to be requested and the associated page. Optionally, one to-be-requested page may correspond to one or more associated pages, and one to-be-requested page may not correspond to any associated page. Optionally, the correspondence between the page to be requested and the associated page may be as shown in table 3:
TABLE 3
Identification of pages to be requested Identification of associated pages
Page to request 1 Associated page 1 and associated page 2
To-be-requested page 2 /
Page to be requested 3 Associated Page 4
Page to be requested 4 Associated page 5, associated page 6, and associated page 7
…… ……
It should be noted that table 3 only illustrates the corresponding relationship between the page to be requested and the associated page in an exemplary form, and does not limit the corresponding relationship, and in the actual application process, the corresponding relationship may be set according to actual needs, which is not specifically limited in the present invention.
The technical solution shown in the above embodiment is described in detail by referring to a terminal interface diagram shown in fig. 5 by specific examples.
Fig. 5 is a schematic diagram of a terminal interface provided by the present invention, please refer to fig. 5, which includes a page 501 and a page 504, wherein,
in the process of browsing the current page (page 501), when a user needs to view a page corresponding to the my gift package, the user clicks the link icon of the my gift package to enable the terminal device to obtain a page view instruction, and the page view instruction is used for requesting to display a gift package list page (page 502).
After the terminal device obtains the page viewing instruction, the terminal device judges that page element information corresponding to the gift package list page is not stored locally in the terminal device, and then the terminal device requests the page server to obtain the gift package list page. Specifically, the method comprises the following steps: the terminal equipment obtains an associated page corresponding to the gift package list page: the method comprises the steps of providing a gift package detail page (page 503) and a pickup detail page (page 504), requesting to a page server to obtain a gift package list page, and meanwhile requesting to the page server to obtain a page element information set 1 corresponding to the gift package detail page and the pickup detail page, wherein the page element information set 1 comprises private page element information of the gift package detail page, private page element information of the pickup detail page and public page element information, and the public page element information comprises the same page element information (such as the name of the gift package, the gift package code, the use mode of the gift package and the like) in the gift package detail page and the pickup detail page.
And after the terminal equipment acquires the gift package list page sent by the page server, the terminal equipment displays the gift package list page.
In the page 502, when the user needs to view the detail information of the gift package 1, the user may click on the "detail" link icon of the gift package 1 to input a page view instruction in the terminal device, where the page view instruction includes the identifier of the "gift package 1". After the terminal device acquires the page view instruction including the identifier of the "gift package 1", the terminal device determines that the page element information corresponding to the gift package detail page is locally stored, and then the terminal device acquires the page element information set 1 of the gift package detail page locally, acquires the private page element information (page layout) of the gift package detail page from the page element information set 1, acquires the page element information (for example, the name of the gift package 1, the gift package code of the gift package 1, and the like) corresponding to the gift package 1 from the public page element information, generates a DOM element corresponding to the gift package detail page according to the private page element information and the public page element information of the gift package detail page, and sets the DOM element to be in a display state, so as to display the gift package detail page in the terminal device.
In the page 503, when the user needs to receive the gift bag 1, the user may click on the "receive" link icon of the gift bag 1 to input a page view instruction in the terminal device, where the page view instruction includes an identifier of the "gift bag 1". After the terminal device obtains a page view instruction including an identifier of a gift package 1, the terminal device determines that page element information corresponding to a pickup detail page is locally stored, the terminal device locally obtains a page element information set 1 of the pickup detail page, obtains private page element information (page layout) of the pickup detail from the page element information set 1, obtains page element information (for example, a gift package code of the gift package 1 and a use mode of the gift package 1) corresponding to the gift package 1 from public page element information, generates a DOM element corresponding to the pickup detail page according to the private page element information and the public page element information of the pickup detail page, and sets the DOM element to be in a display state so as to display the pickup detail page in the terminal device.
It should be noted that, in any of the above embodiments, during the process of accessing the page by the user, the terminal device may record the process of accessing the page by the user in the form of a data structure-stack. Specifically, after a user opens a new page, the terminal device pushes the identifier of the new page into the stack, and when the user needs to return to a page accessed by a previous layer, the terminal device can mark the page at the top of the stack out of the stack and display the page corresponding to the page identifier at the top of the stack in the terminal device.
Fig. 6 is a schematic structural diagram of a terminal device provided in the present invention, please refer to fig. 6, where the terminal device may include:
a receiving module 601, configured to receive a page viewing instruction input by a user, where the page viewing instruction is used to request to display a page to be displayed;
a determining module 602, configured to determine whether page element information corresponding to the page to be displayed exists in the terminal device;
a first obtaining module 603, configured to obtain page element information in the terminal device when the determining module determines that the page element information corresponding to the page to be displayed exists in the terminal device;
a generating module 604, configured to generate a document object model DOM element corresponding to the page to be requested according to the page element information;
a display module 605, configured to display the page to be displayed according to the DOM element;
a second obtaining module 606, configured to, when the determining module determines that the page element information corresponding to the page to be displayed does not exist in the terminal device, request a page server to obtain the page to be displayed, so that the display module 604 displays the page to be displayed.
The terminal device provided by the embodiment of the present invention may execute the technical solutions shown in the above method embodiments, and the implementation principles and beneficial effects thereof are similar, and are not described herein again.
In a possible implementation manner, optionally, the display module 605 may be specifically configured to:
determining an original page currently displayed by the terminal equipment, wherein the page to be displayed is a sub-page in the original page;
and setting the state of the DOM element as a display state in the original page, so as to display the page to be displayed in the original page.
Fig. 7 is a schematic structural diagram of a second terminal device according to the second embodiment of the present invention, and referring to fig. 7, based on the embodiment shown in fig. 6, the first obtaining module 603 includes a first obtaining unit 6031 and a second obtaining unit 6032, wherein,
the first obtaining unit 6031 is configured to obtain a page element set corresponding to the page to be requested, where the page element set includes page element information corresponding to at least two pages;
the second obtaining unit 6032 is configured to obtain, in the page element set, page element information corresponding to the page to be requested.
Optionally, the page viewing instruction includes a page transfer parameter; the page element set comprises private page element information and public page element information corresponding to at least two pages, wherein the public page element information is the same page element information corresponding to the at least two pages;
correspondingly, the second obtaining unit 6032 may specifically be configured to:
according to the identification of the page to be displayed, acquiring private page element information corresponding to the identification of the page to be displayed in the page element information set;
and acquiring the public page element information corresponding to the page to be displayed in the public page element information according to the page transmission parameter.
Optionally, the page element information includes at least one of the following files: hypertext markup language HTML files, cascading style sheet CSS files, JavaScript files.
The terminal device provided by the embodiment of the present invention may execute the technical solutions shown in the above method embodiments, and the implementation principles and beneficial effects thereof are similar, and are not described herein again.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (6)

1. A page display method is applied to terminal equipment, and the method comprises the following steps:
receiving a page viewing instruction input by a user, wherein the page viewing instruction is used for requesting to display a page to be displayed and comprises a page transmission parameter;
judging whether page element information corresponding to the page to be displayed exists in the terminal equipment;
if so, acquiring a page element set corresponding to the page to be requested, wherein the page element set comprises page element information corresponding to at least two pages; acquiring page element information corresponding to the page to be requested in the page element set, generating a Document Object Model (DOM) element corresponding to the page to be requested according to the page element information, and displaying the page to be displayed according to the DOM element;
if not, requesting a page server to acquire page element information of the page to be displayed and the page not to be displayed, displaying the page to be displayed according to the page to be displayed, and caching the page element information of the page not to be displayed in the terminal equipment;
the page element set comprises private page element information and public page element information corresponding to at least two pages, wherein the public page element information is the same page element information corresponding to the at least two pages;
correspondingly, obtaining the page element information corresponding to the page to be requested in the page element set includes:
according to the identification of the page to be displayed, acquiring private page element information corresponding to the identification of the page to be displayed in the page element information set;
and acquiring the public page element information corresponding to the page to be displayed in the public page element information according to the page transmission parameter.
2. The method according to claim 1, wherein the displaying the page to be displayed according to the DOM element comprises:
determining an original page currently displayed by the terminal equipment, wherein the page to be displayed is a sub-page in the original page;
and setting the state of the DOM element as a display state in the original page, so as to display the page to be displayed in the original page.
3. The method according to claim 1 or 2, wherein the page element information comprises at least one of the following documents: hypertext markup language HTML files, cascading style sheet CSS files, JavaScript files.
4. A terminal device, comprising:
the device comprises a receiving module, a display module and a display module, wherein the receiving module is used for receiving a page viewing instruction input by a user, the page viewing instruction is used for requesting to display a page to be displayed, and the page viewing instruction comprises page transmission parameters;
the judging module is used for judging whether page element information corresponding to the page to be displayed exists in the terminal equipment;
the first obtaining module is used for obtaining the page element information in the terminal equipment when the judging module judges that the page element information corresponding to the page to be displayed exists in the terminal equipment;
the generating module is used for generating a Document Object Model (DOM) element corresponding to the page to be requested according to the page element information;
the display module is used for displaying the page to be displayed according to the DOM element;
a second obtaining module, configured to, when the determining module determines that the page element information corresponding to the page to be displayed does not exist in the terminal device, request a page server to obtain page element information of the page to be displayed and a page not to be displayed, so that the display module displays the page to be displayed according to the page to be displayed, and caches the page element information of the page not to be displayed in the terminal device;
the first obtaining module comprises a first obtaining unit and a second obtaining unit, wherein,
the first obtaining unit is configured to obtain a page element set corresponding to the page to be requested, where the page element set includes page element information corresponding to at least two pages;
the second obtaining unit is configured to obtain page element information corresponding to the page to be requested in the page element set;
the page element set comprises private page element information and public page element information corresponding to at least two pages, wherein the public page element information is the same page element information corresponding to the at least two pages;
correspondingly, the second obtaining unit is specifically configured to:
according to the identification of the page to be displayed, acquiring private page element information corresponding to the identification of the page to be displayed in the page element information set;
and acquiring the public page element information corresponding to the page to be displayed in the public page element information according to the page transmission parameter.
5. The terminal device according to claim 4, wherein the display module is specifically configured to:
determining an original page currently displayed by the terminal equipment, wherein the page to be displayed is a sub-page in the original page;
and setting the state of the DOM element as a display state in the original page, so as to display the page to be displayed in the original page.
6. The terminal device according to claim 4 or 5, wherein the page element information comprises at least one of the following files: hypertext markup language HTML files, cascading style sheet CSS files, JavaScript files.
CN201610498192.2A 2016-06-29 2016-06-29 Page display method and terminal equipment Active CN106126683B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610498192.2A CN106126683B (en) 2016-06-29 2016-06-29 Page display method and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610498192.2A CN106126683B (en) 2016-06-29 2016-06-29 Page display method and terminal equipment

Publications (2)

Publication Number Publication Date
CN106126683A CN106126683A (en) 2016-11-16
CN106126683B true CN106126683B (en) 2020-03-24

Family

ID=57284728

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610498192.2A Active CN106126683B (en) 2016-06-29 2016-06-29 Page display method and terminal equipment

Country Status (1)

Country Link
CN (1) CN106126683B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107622106A (en) * 2017-09-13 2018-01-23 五八有限公司 Reminding method and device when a kind of page can not render
CN108829828B (en) * 2018-06-15 2022-01-21 卓米私人有限公司 Webpage display method and device, electronic equipment and readable storage medium
CN109343915A (en) * 2018-08-01 2019-02-15 平安科技(深圳)有限公司 Picture list shows method, apparatus, terminal device and storage medium
CN109471989A (en) * 2018-11-01 2019-03-15 郑州云海信息技术有限公司 A kind of page request processing method and relevant apparatus
CN110750958A (en) * 2019-10-17 2020-02-04 北京奇艺世纪科技有限公司 Text display method and device, electronic equipment and medium

Citations (2)

* 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
CN104965914A (en) * 2015-07-06 2015-10-07 无锡天脉聚源传媒科技有限公司 Page display method and apparatus

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9330395B2 (en) * 2009-05-05 2016-05-03 Suboti, Llc System, method and computer readable medium for determining attention areas of a web page

Patent Citations (2)

* 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
CN104965914A (en) * 2015-07-06 2015-10-07 无锡天脉聚源传媒科技有限公司 Page display method and apparatus

Also Published As

Publication number Publication date
CN106126683A (en) 2016-11-16

Similar Documents

Publication Publication Date Title
CN106126683B (en) Page display method and terminal equipment
US10049168B2 (en) Systems and methods for modifying webpage data
CN106911693B (en) Method and device for detecting hijacking of webpage content and terminal equipment
US20130198613A1 (en) Methods for tranforming requests for web content and devices thereof
CN102473171A (en) Communicating information about a local machine to a browser application
CN104978358B (en) The method and intercepting page segment of desktop presentation web page fragments are to desktop presentation system
US20170192941A1 (en) Computer-Automated Generation of Application Deep Links
US10158691B2 (en) Method and apparatus for providing network resources at intermediary server
CN103825948B (en) Method and system based on accessing page request optimization page access
KR101708273B1 (en) Method, device, program, recording medium for terminal marking
CN105512227A (en) Webpage data loading method and system
CN104965690A (en) Method and apparatus for processing data
CN103516787A (en) Method, terminal and system for synchronous display
US9147006B2 (en) Requesting computer data assets
CN111460348B (en) File processing method and device
JP2009163728A (en) Advertisement providing method obtained by taking into consideration user terminal environment and system for executing the method
CN111581553B (en) Network image display method, system, electronic equipment and storage medium
CN104133869A (en) Webpage page refreshing method
US10771578B2 (en) Webpage loading method and apparatus
CN111339461A (en) Page access method of application program and related product
KR20140066398A (en) System and method of changing webpage layout display according to information of display apparatus
US20140250503A1 (en) Systems and methods for delivering platform-independent web content
KR101974339B1 (en) Network system and control method
CN104978181B (en) Page display method, terminal and device
US20140325346A1 (en) Shortened Network Address Linking to Image Representation of Web Page

Legal Events

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