TW201525740A - Method and device for displaying web page and computer-readable storage medium - Google Patents

Method and device for displaying web page and computer-readable storage medium Download PDF

Info

Publication number
TW201525740A
TW201525740A TW103143726A TW103143726A TW201525740A TW 201525740 A TW201525740 A TW 201525740A TW 103143726 A TW103143726 A TW 103143726A TW 103143726 A TW103143726 A TW 103143726A TW 201525740 A TW201525740 A TW 201525740A
Authority
TW
Taiwan
Prior art keywords
webpage
label
tag
target
link information
Prior art date
Application number
TW103143726A
Other languages
Chinese (zh)
Other versions
TWI519980B (en
Inventor
Tao Tao
Original Assignee
Tencent Tech Shenzhen 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 Tencent Tech Shenzhen Co Ltd filed Critical Tencent Tech Shenzhen Co Ltd
Publication of TW201525740A publication Critical patent/TW201525740A/en
Application granted granted Critical
Publication of TWI519980B publication Critical patent/TWI519980B/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/954Navigation, e.g. using categorised browsing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9558Details of hyperlinks; Management of linked annotations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9562Bookmark management
    • 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

Abstract

A method and a device for displaying a web page and a computer-readable storage medium are disclosed. The method includes: determining whether a link label of a current web page includes a target label, the target label utilized for linking a next web page; acquiring information about a target URL link when the determined result is yes; locally loading a web page content of the information about the target URL link; and acquiring and displaying the web page content of the information about the target URL link when a request for linking to the next web page is received. The present invention can increase the efficiency of displaying the web page on a terminal.

Description

網頁顯示方法和裝置及電腦可讀取儲存介質 Web page display method and device and computer readable storage medium

本發明關於網際網路技術領域,特別是關於一種網頁顯示方法和裝置。 The present invention relates to the field of Internet technologies, and in particular, to a web page display method and apparatus.

隨著網際網路技術的發展,網頁的內容也越來越豐富。在實際應用過程中,提供網頁的伺服器經常會因為某種原因而將某一網頁透過分頁的方式下載至終端,即伺服器將原本屬於一個內容型網頁的網頁內容拆分為多個網頁,並透過多次將該這些網頁下載至終端。例如:終端的螢幕太小,即終端的螢幕無法一次顯示內容型網頁的所有內容時,伺服器就會將該內容型網頁劃分為多個網頁,並透過終端的多次操作請求將此多個網頁發送至終端;或例如:終端的網路流量與瀏覽器的渲染速度過慢時,即該瀏覽器渲染內容型網頁的時間較長,伺服器就會將該內容型網頁劃分為多個網頁,並透過終端的多次操作請求將此多個網頁發送至終端。終端透過上述技術就可以多次向伺服器拉取網頁內容以顯示整個內容型網頁,然而,在該過程中,都是使用者瀏覽完其中一個網頁後,終端才接收使用者輸入的操作,透過該操作向伺服器拉取下一個網頁,這樣在接收到使用者所輸入用於顯示下一個網頁的操作時才向伺服器拉取的過程中經常會因為網路原因導致拉取過程比較慢,可見,目前終端顯示網頁的效率比較低。 With the development of Internet technology, the content of web pages is becoming more and more abundant. In the actual application process, the server providing the webpage often downloads a webpage to the terminal through pagination for some reason, that is, the server splits the webpage content originally belonging to one content type webpage into a plurality of webpages. And download these pages to the terminal through multiple times. For example, if the screen of the terminal is too small, that is, the screen of the terminal cannot display all the content of the content-type webpage at one time, the server divides the content-type webpage into multiple webpages, and requests the plurality of webpages through multiple operations of the terminal. The webpage is sent to the terminal; or, for example, when the network traffic of the terminal and the rendering speed of the browser are too slow, that is, the browser renders the content webpage for a long time, and the server divides the content webpage into multiple webpages. And sending the plurality of web pages to the terminal through multiple operations of the terminal. Through the above technology, the terminal can pull the webpage content to the server multiple times to display the entire content type webpage. However, in the process, after the user browses one of the webpages, the terminal receives the user input operation through the terminal. The operation pulls the next webpage to the server, so that when the user inputs the operation for displaying the next webpage, the pull process is often slow due to the network. It can be seen that the efficiency of the terminal displaying the webpage is relatively low.

本發明實施例提供了一種網頁顯示方法和裝置,可以提高終端顯示網頁的效率。 The embodiment of the invention provides a webpage display method and device, which can improve the efficiency of displaying a webpage by a terminal.

本發明實施例的第一方面提供一種網頁顯示方法,包括:判斷一當前網頁之一連接標籤是否包括一目標標籤,所述連接標籤為用於連接網頁的標籤,所述目標標籤用於連接網頁內容位於所述當前網頁的網頁內容之後且與所述當前網頁的網頁內容連續之一下一網頁;當判斷結果為是時,獲取一目標URL連結資訊,所述目標URL連結資訊係與所述目標標籤對應且與所述當前網頁之一URL連結資訊滿足一相似度規則;下載所述目標URL連結資訊的網頁內容至本地;以及當接收到連接所述下一網頁之一請求時,從本地獲取所述目標URL連結資訊的網頁內容並顯示所述目標URL連結資訊的網頁內容。 A first aspect of the embodiments of the present invention provides a method for displaying a webpage, including: determining whether a connection label of a current webpage includes a target label, the connection label is a label for connecting a webpage, and the target label is used for connecting a webpage The content is located after the webpage content of the current webpage and is next to the webpage content of the current webpage; when the determination result is yes, a target URL link information is acquired, and the target URL links the information system with the target Corresponding to and matching the URL of one of the current webpages to meet a similarity rule; downloading the webpage content of the target URL link information to the local; and obtaining the local request when connecting to one of the next webpages The target URL links the webpage content of the information and displays the webpage content of the target URL link information.

本發明實施例的第二方面提供一種網頁顯示裝置,包括:一判斷模組,用於判斷一當前網頁之一連接標籤是否包括一目標標籤,所述連接標籤為用於連接網頁的標籤,所述目標標籤用於連接網頁內容位於所述當前網頁的網頁內容之後且與所述當前網頁的網頁內容連續之一下一網頁;一獲取模組,用於當所述判斷模組的判斷結果為是時,獲取一目標URL連結資訊,所述目標URL連結資訊係與所述目標標籤對應且與所述當前網頁之一URL連結資訊滿足一相似度規則;一下載模組,用於下載所述目標URL連結資訊的網頁內容至本地;以及一顯示模組,用於當接收到連接所述下一網頁之一請求時,從本地獲取所述下載模組下載的所述目標URL連結資訊的網頁內容,並顯示所述目標URL連結資訊的網頁內容。 A second aspect of the present invention provides a webpage display device, including: a judging module, configured to determine whether a connection label of a current webpage includes a target label, and the connection label is a label for connecting a webpage, The target tag is configured to connect the webpage content to the next webpage of the webpage content of the current webpage and is continuous with the webpage content of the current webpage; and an obtaining module, configured to: when the determining result of the determining module is Obtaining a target URL link information, where the target URL link information corresponds to the target tag and the URL link information of one of the current web pages satisfies a similarity rule; a download module is configured to download the target The webpage content of the web link information is local to the webpage; and a display module, configured to obtain the webpage content of the target URL link information downloaded by the download module from the local when receiving the request for connecting the one of the next webpages And displaying the content of the webpage of the target URL link information.

上述技術方案中,先判斷當前網頁之連接標籤是否包括用於連接下一網頁之目標標籤;當判斷結果為是時,獲取目標URL連結資訊,所述目標URL連結資訊係與目標標籤對應且與當前網頁之URL連結資訊滿足相似度規則;下載目標URL連結資訊的網頁內容至本地;以及當接收到連接下一網頁之請求時,從本地獲取目標URL連結資訊的網頁內容並顯示 目標URL連結資訊的網頁內容。本發明可以實現在接收到連接下一網頁的請求之前,就將下一網頁的網頁內容下載至本地,當接收到該請求時,就可以直接從本地獲取,從而可以提高終端顯示網頁的效率。 In the foregoing technical solution, first determining whether the connection label of the current webpage includes a target label for connecting to the next webpage; when the determination result is yes, acquiring the target URL connection information, where the target URL connection information corresponds to the target label and The URL link information of the current webpage satisfies the similarity rule; the webpage content of the target URL link information is downloaded to the local; and when the request for connecting the next webpage is received, the webpage content of the target URL link information is locally obtained and displayed. The URL of the webpage to which the target URL is linked. The invention can download the webpage content of the next webpage to the locality before receiving the request for connecting the next webpage. When the request is received, the webpage content can be directly obtained from the local, so that the efficiency of displaying the webpage by the terminal can be improved.

81‧‧‧判斷模組 81‧‧‧Judgement module

82‧‧‧獲取模組 82‧‧‧Getting module

83‧‧‧下載模組 83‧‧‧Download module

84‧‧‧顯示模組 84‧‧‧Display module

301、302、303‧‧‧標籤 301, 302, 303‧ ‧ tags

811‧‧‧第一判斷單元 811‧‧‧First Judgment Unit

812‧‧‧第一確定單元 812‧‧‧First determination unit

813‧‧‧第二確定單元 813‧‧‧Second determination unit

8131‧‧‧第一獲取子單元 8131‧‧‧First acquisition subunit

8132‧‧‧第二獲取子單元 8132‧‧‧Second acquisition subunit

8133‧‧‧第一確定子單元 8133‧‧‧First identified subunit

8134‧‧‧第三獲取子單元 8134‧‧‧ third acquisition subunit

8135‧‧‧第四獲取子單元 8135‧‧‧fourth acquisition subunit

8136‧‧‧第二確定子單元 8136‧‧‧Secondary subunit

S101-S104、S201-S206、S401-S408、S501-S5012、S601-S6015、S701-S704‧‧‧步驟 S101-S104, S201-S206, S401-S408, S501-S5012, S601-S6015, S701-S704‧‧

第1圖是本發明實施例提供的一種網頁顯示方法的流程圖;第2圖是本發明實施例提供的另一種網頁顯示方法的流程圖;第3圖是本發明實施提供的網頁介面示意圖;第4-7圖是本發明實施例提供的應用實例示意圖;第8圖是本發明實施例提供的一種網頁顯示裝置的方塊圖;第9圖是本發明實施例提供的另一種網頁顯示裝置的方塊圖;以及第10圖是第9圖中第二確定單元的方塊圖。 1 is a flowchart of a webpage display method according to an embodiment of the present invention; FIG. 2 is a flowchart of another webpage display method according to an embodiment of the present invention; and FIG. 3 is a schematic diagram of a webpage interface provided by the implementation of the present invention; 4 is a block diagram of an application example provided by an embodiment of the present invention; FIG. 8 is a block diagram of a webpage display device according to an embodiment of the present invention; and FIG. 9 is another webpage display device according to an embodiment of the present invention. Block diagram; and Fig. 10 is a block diagram of the second determining unit in Fig. 9.

為了使本發明的目的、技術方案及優點更加清楚明白,以下結合附圖及實施例,對本發明進行進一步詳細說明。應當理解,此處所描述的具體實施例僅僅用以解釋本發明,並不用於限定本發明。 The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

請參考第1圖,第1圖是本發明實施例提供的一種網頁顯示方法的流程示意圖,如第1圖所示,包括以下步驟:步驟S101:判斷當前網頁的連接標籤是否包括目標標籤,若是,則執行步驟S102,若否,則結束流程,其中所述連接標籤為用於連接網頁的標籤,所述目標標籤用於連接網頁內容位於所述當前網頁的網頁內容之後且與所述當前網頁的網頁內容連續之一下一網頁。 Please refer to FIG. 1 . FIG. 1 is a schematic flowchart of a webpage display method according to an embodiment of the present invention. As shown in FIG. 1 , the method includes the following steps: Step S101 : determining whether a connection label of a current webpage includes a target label, and if Step S102 is performed, and if no, the process is terminated, wherein the connection tag is a tag for connecting a webpage, and the target tag is used to connect the webpage content after the webpage content of the current webpage and the current webpage The content of the page is one of the next pages in succession.

具體而言是在執行步驟S101時顯示上述當前網頁,其中該當前網頁可以是內容型網頁拆分的多個網頁中的一個網頁,內容型網頁是指網頁內容較多,伺服器會將這些網頁內容安排在多個網頁中的網頁,即內容型網頁是指伺服器需要拆分為多個網頁的網頁。例如:內容型網頁在 具有大螢幕的終端(例如:電腦)上顯示時可以一次性顯示出整個網頁,但該內容型網頁在具有小螢幕的終端(例如:手機)上顯示時,可能需要透過多個網頁才可以顯示出該內容型網頁的所有網頁內容。另外,上述當前網頁還可以是普通網頁,即不需要拆分的網頁。 Specifically, the current webpage is displayed when the step S101 is performed, where the current webpage may be one of a plurality of webpages split by the content-type webpage, and the content-type webpage refers to more webpage content, and the server will use the webpages. A content page is arranged in a plurality of web pages, that is, a content type webpage refers to a webpage that the server needs to split into multiple webpages. For example: a content page is When a terminal with a large screen (for example, a computer) is displayed, the entire web page can be displayed at one time, but when the content type web page is displayed on a terminal having a small screen (for example, a mobile phone), it may be necessary to display through multiple web pages. All web content of the content page. In addition, the current webpage may also be a normal webpage, that is, a webpage that does not need to be split.

可選的,上述連接標籤為用於連接網頁的標籤,具體可以是指被點擊後可以連接一個網頁的標籤,例如:上述連接標籤可以包括a標籤和/或按鈕(button)標籤,這兩個標籤被點擊之後,瀏覽器會連接到另一個網頁,其中a標籤和button標籤為網頁技術的中公知的技術名詞,此處不作詳細說明。另外上述用於連接下一網頁的目標標籤具體可以是指被點擊之後可以連接到上述下一網頁的標籤。 Optionally, the foregoing connection label is a label for connecting a webpage, and specifically may be a label that can be connected to a webpage after being clicked. For example, the connection label may include an a label and/or a button label, and the two labels. After the tag is clicked, the browser will connect to another web page, where the a tag and the button tag are well-known technical terms in web technology and will not be described in detail herein. In addition, the target tag for connecting to the next webpage may specifically refer to a tag that can be connected to the next webpage after being clicked.

可選的,當上述當前網頁為內容型網頁包括的網頁時,上述下一網頁就可以是該內容型網頁包括的該當前網頁的下一個網頁。例如上述當前網頁為內容型網頁的第1頁,那麼上述下一網頁就可以為該內容型網頁的第2頁。當上述當前網頁為普通網頁時,上述下一網頁就可以是該當前網頁的下一個網頁。例如上述當前網頁為某小說的第10章節的網頁,那麼上述下一網頁就可以為該小說的第11章節的網頁。 Optionally, when the current webpage is a webpage included in the content-type webpage, the next webpage may be the next webpage of the current webpage included in the content-type webpage. For example, if the current webpage is the first page of the content type webpage, then the next webpage may be the second page of the content type webpage. When the current webpage is a normal webpage, the next webpage may be the next webpage of the current webpage. For example, if the current webpage is the webpage of the tenth chapter of a novel, then the next webpage may be the webpage of the eleventh chapter of the novel.

步驟S102:獲取與所述目標標籤對應且與所述當前網頁的全球資源定位器(Uniform Resource Locator;URL,以下稱URL)連結資訊滿足相似度規則的目標URL連結資訊。 In step S102, the target URL link information corresponding to the target tag and the link information of the global resource locator (URL, hereinafter referred to as URL) of the current webpage satisfies the similarity rule.

可選的,上述滿足相似度規則可以是指兩個連結資訊包括的功能變數名稱相同、路徑相同,且包括至少一個相同的查詢參數。 Optionally, the satisfying the similarity rule may be that the two link information includes the same function variable name, the same path, and at least one identical query parameter.

可選的,上述URL連結資訊具體可以是URL位址,其中上述功能變數名稱、路徑和查詢參數都屬於URL連結資訊中的參數。由於上述目標URL連結資訊與上述當前網頁的URL連結資訊滿足上述相似度規則,即上述目標URL連結資訊的功能變數名稱與當前網頁的URL連結資訊的功能變數名稱相同,上述目標URL連結資訊的路徑與當前網頁的URL連結資 訊路徑相同,且上述目標URL連結資訊至少有一個查詢參數與當前網頁的URL連結資訊的一個查詢參數相同。這樣就可以確定上述下一網頁與上述當前網頁為同一個主題或者同一個內容型網頁的網頁。另外,上述目標標籤對應的連結資訊除包括上述目標URL連結資訊之外,還可以包括其它連結資訊,例如廣告的連結資訊或者干擾的連結資訊,而廣告的連結資訊與干擾的連結資訊與上述當前網頁的URL連結資訊是不滿足相似度規則的,這樣透過步驟S102還可以去除上述目標標籤對應的連結資訊所包括目標URL連結資訊之外的其它連結資訊,進而不獲取上述其它連結資訊,這樣可以達到節約功耗和節約網路資源的效果。 Optionally, the URL link information may be a URL address, where the function variable name, path, and query parameter belong to a parameter in the URL link information. The target URL link information and the URL link information of the current webpage satisfy the similarity rule, that is, the function variable name of the target URL link information is the same as the function variable name of the URL link information of the current webpage, and the path of the target URL link information is Link to the URL of the current web page The message path is the same, and the target URL link information has at least one query parameter that is the same as a query parameter of the URL link information of the current web page. In this way, it can be determined that the next webpage is the same topic or the webpage of the same content type webpage as the current webpage. In addition, the link information corresponding to the target tag may include other link information, such as the link information of the advertisement or the link information of the interference, and the link information of the advertisement and the link information of the interference and the current information. The URL link information of the webpage does not satisfy the similarity rule. In this way, the link information corresponding to the target tag includes the link information other than the target URL link information, and the other link information is not obtained. Achieve power savings and save network resources.

步驟S103:下載所述目標URL連結資訊的網頁內容至本地。 Step S103: Download the webpage content of the target URL link information to the local.

該步驟具體可以是在後台將該目標URL連結資訊發送至伺服器,再接收伺服器發送的目標URL連結資訊的網頁內容,並將接收到的網頁內容暫存至本地。 The step may specifically be: sending the target URL link information to the server in the background, receiving the webpage content of the target URL link information sent by the server, and temporarily storing the received webpage content locally.

步驟S104:當接收到輸入的用於連接所述下一網頁的請求時,從本地獲取所述目標URL連結資訊的網頁內容,並顯示所述目標URL連結資訊的網頁內容。 Step S104: When receiving the input request for connecting the next webpage, acquiring the webpage content of the target URL link information from the locality, and displaying the webpage content of the target URL link information.

透過上述步驟就可以實現在接收到用於連接當前網頁的網頁內容之後且與當前網頁的網頁內容連續之下一網頁的請求之前,就將下一網頁的網頁內容下載至本地,即在使用者瀏覽上述當前網頁時,將下一網頁的網頁內容下載至本地。當接收到用於連接所述下一網頁的請求時,就可以直接從本地獲取下一網頁的網頁內容,由於此時不需要向伺服器獲取下一網頁的網頁內容,從而可以提高顯示網頁的效率。上述用於連接所述下一網頁的請求具體可以是點擊上述目標標籤所產生的請求,例如使用者點擊上述目標標籤所輸入的請求。 Through the above steps, after receiving the request for connecting the webpage content of the current webpage and continuing the webpage content of the current webpage, the webpage content of the next webpage is downloaded to the local, that is, the user When browsing the above current webpage, download the webpage content of the next webpage to the local. When the request for connecting the next webpage is received, the webpage content of the next webpage can be directly obtained from the local, because the webpage content of the next webpage is not required to be obtained from the server at this time, thereby improving the displaying of the webpage. effectiveness. The request for connecting the next webpage may specifically be a request generated by clicking the target tag, for example, the user inputs a request input by the target tag.

可選的,上述方法具體可以應用於任何具備通信和顯示網頁功能的設備,即該設備可以實現上述方法,例如平板電腦、手機、電子閱 讀器、遙控器、個人電腦(Personal Computer;PC,以下稱PC)、筆記型電腦、車載設備、網路電視、可穿戴設備等具有網路功能的智慧設備。 Optionally, the foregoing method may be specifically applied to any device that has the function of communicating and displaying a webpage, that is, the device can implement the foregoing method, such as a tablet computer, a mobile phone, or an electronic reading. Readers, remote controls, personal computers (PCs, PCs, hereinafter referred to as PCs), notebooks, in-vehicle devices, Internet TVs, wearable devices, and other smart devices with network capabilities.

上述技術方案中包括:判斷當前網頁的連接標籤是否包括目標標籤,所述目標標籤用於連接網頁內容位於當前網頁的網頁內容之後且與當前網頁的網頁內容連續之下一網頁;當判斷結果為是時,獲取與所述目標標籤對應且與所述當前網頁的URL連結資訊滿足相似度規則的目標URL連結資訊;下載所述目標URL連結資訊的網頁內容至本地;當接收到輸入的用於連接當前網頁的網頁內容之後且與當前網頁的網頁內容連續之下一網頁的請求時,從本地獲取所述目標URL連結資訊的網頁內容,並顯示所述目標URL連結資訊的網頁內容。這樣可以實現在接收到輸入的用於連接所述下一網頁的請求之前,就將下一網頁的網頁內容下載至本地,當接收到該請求時,就可以直接從本地獲取下一網頁的網頁內容,從而可以提高終端顯示網頁的效率。 The foregoing technical solution includes: determining whether the connection label of the current webpage includes a target label, where the target label is used to connect the webpage content after the webpage content of the current webpage and is continuous with the webpage content of the current webpage; When yes, the target URL link information corresponding to the target tag and the URL link information of the current webpage meets the similarity rule is acquired; the webpage content of the target URL link information is downloaded to the local; when the input is received, When the webpage content of the current webpage is connected and the webpage content of the current webpage is consecutively requested by the webpage, the webpage content of the target URL link information is locally obtained, and the webpage content of the target URL link information is displayed. In this way, before receiving the input request for connecting the next webpage, the webpage content of the next webpage is downloaded to the local, and when the request is received, the webpage of the next webpage can be directly obtained from the local webpage. Content, which can improve the efficiency of the terminal displaying the webpage.

請參考第2圖,第2圖是本發明實施例提供的另一種網頁顯示方法的流程示意圖,如第2圖所示,包括以下步驟:步驟S201:判斷當前網頁的連接標籤是否包括含有表示連接下一網頁的關鍵字的目標標籤,若是,則執行步驟S202,若否,則執行步驟S203。 Referring to FIG. 2, FIG. 2 is a schematic flowchart diagram of another webpage display method according to an embodiment of the present invention. As shown in FIG. 2, the method includes the following steps: Step S201: determining whether the connection label of the current webpage includes the indication connection. If the target tag of the keyword of the next web page is, the process proceeds to step S202, and if no, the process proceeds to step S203.

可選的,上述關鍵字具體可以是預先設置的,步驟S201再根據該預先設置的關鍵字去判斷所述當前網頁的連接標籤是否包括含有表示連接下一網頁的關鍵字的目標標籤。另外,上述關鍵字包括但不限於下述列出的關鍵字,本實施例對此不作限定:下一頁、下頁、下章、下一章、下張、下一張、下節、下一節、餘下全文等。 Optionally, the keyword may be preset, and the step S201 determines, according to the preset keyword, whether the connection label of the current webpage includes a target label that includes a keyword indicating that the next webpage is connected. In addition, the above keywords include, but are not limited to, the keywords listed below, which are not limited in this embodiment: next page, next page, next chapter, next chapter, next page, next page, next section, lower One section, the rest of the full text, etc.

步驟S202:將所述目標標籤作為用於連接下一網頁的目標標籤。 Step S202: The target tag is used as a target tag for connecting to the next webpage.

步驟S202係將步驟S201判斷出的目標標籤作為用於連接下 一網頁的目標標籤。 Step S202 is to use the target label determined in step S201 as a connection for The target tag of a web page.

步驟S203:將所述當前網頁滿足預設標籤條件的連接標籤作為用於連接下一網頁的目標標籤。 Step S203: The connection label that satisfies the preset label condition of the current webpage is used as a target label for connecting to the next webpage.

可選的,上述預設標籤條件具體可以包括:超文字引用(Hypertext Reference;href,以下稱href)屬性為不主動連接屬性,且點擊(on click)事件的腳本為Java腳本(JavaScript),且高度與至少一個連接標籤的高度一致,且父節點的標籤和兄弟節點的標籤中只有一個標籤包括兩個以上的數字。 Optionally, the preset label condition may include: a hypertext reference (href, hereinafter referred to as href) attribute is a non-active connection attribute, and a script for clicking an (click) event is a Java script (JavaScript), and The height is consistent with the height of at least one of the connection tags, and only one of the tags of the parent node and the tags of the sibling node includes more than two numbers.

也就是說,步驟S203判斷出的目標標籤的href屬性為不主動連接屬性,該目標標籤的點擊事件的腳本為Java腳本,該目標標籤的高度與至少一個連接標籤的高度一致,該目標標籤的父節點的標籤和兄弟節點的標籤中只有一個標籤包括兩個以上的數字。另外,上述href屬性為不主動連接屬性具體可以是href屬性為javascript:(0)或者javascript::或者#等,其中javascript:(0)或javascript::或#為網頁技術協定定義的href屬性。上述父節點的標籤和兄弟節點的標籤中只有一個標籤包括兩個以上的數字具體可以是目標標籤的父節點的標籤和兄弟節點的標籤中只有一個標籤所包括的內容為兩個以上的數字,即該標籤只會包括兩個或者超過兩個的數字。另外,上述父節點可以是三層父節點,上述兄弟節點具體可以是三層兄弟節點。 That is, the href attribute of the target tag determined in step S203 is an inactive connection attribute, and the script of the click event of the target tag is a Java script, and the height of the target tag is consistent with the height of at least one connection tag, and the target tag is Only one of the labels of the parent node and the labels of the sibling node includes more than two digits. In addition, the above href attribute is an inactive connection attribute, and the href attribute may be javascript:(0) or javascript:: or #, etc., wherein javascript:(0) or javascript:: or # is a href attribute defined by the webpage technology agreement. Only one of the labels of the parent node and the label of the sibling node includes more than two digits. Specifically, the label of the parent node of the target label and the label of the sibling node include only one label of two or more digits. That is, the tag will only contain two or more than two numbers. In addition, the parent node may be a three-layer parent node, and the foregoing sibling node may be a three-layer sibling node.

可選的,步驟S203具體可以包括:(a)獲取所述當前網頁的連接標籤中href屬性為不主動連接屬性,且點擊事件為Java腳本為第一候選標籤;(b)從所述第一候選標籤中獲取至少一組第二候選標籤,所述第二候選標籤包括至少兩個高度一致的第一候選標籤;(c)從所述至少一組第二候選標籤中選擇出第二選定標籤,並將所述第二選定標籤中特定位置的標籤作為用於連接下一網頁的目標標籤,其中所述第二選定標籤的父節點的標籤和兄弟節點的標籤中只有一個標籤包括兩個以上的數字。 Optionally, the step S203 may specifically include: (a) acquiring an href attribute in the connection label of the current webpage as an inactive connection attribute, and clicking a event as a Java script as a first candidate label; (b) from the first Acquiring at least one set of second candidate tags, wherein the second candidate tags include at least two highly consistent first candidate tags; (c) selecting a second selected tag from the at least one set of second candidate tags And a label of a specific location in the second selected label as a target label for connecting to the next webpage, wherein only one of the label of the parent node of the second selected label and the label of the sibling node includes more than two labels The number.

上述第二候選標籤具體可以是至少兩個標籤,且該至少兩個 標籤的高度一致,上述高度具體可以是標籤在網頁中所處的位置的高度。這樣透過步驟(a)和步驟(b)就可以選擇出至少一組高度一致且href屬性為不主動連接屬性,且點擊事件為Java腳本的第二候選標籤。透過步驟(c)可以從至少一組第二候選標籤選擇出第二選定標籤,再將第二選定標籤中特定位置的標籤作為上述目標標籤,其中上述特定位置具體可以是預先設置的位置,例如:該特定位置具體可以是右邊的標籤,即將上述第二選定標籤中位置在右邊的標籤作為上述目標標籤。另外,步驟(c)具體可以是從所述至少一組第二候選標籤選擇父節點的標籤和兄弟節點的標籤中只有一個標籤包括兩個以上的數字的第二候選標籤,再將父節點的標籤和兄弟節點的標籤中只有一個標籤包括兩個以上的數字的第二候選標籤作為上述第二選定標籤。由於在實際應用中,用於連接下一網頁的標籤的父節點的標籤和兄弟節點的標籤都會存在顯示當前網頁為第幾頁的標籤,例如:上述當前網頁為內容型網頁的第1頁,而該內容型網頁被拆分為7頁,則在用於連接下一網頁的標籤的父節點的標籤和兄弟節點的標籤就會包括一個用於表示當前網頁為內容型網頁的7頁中的第一頁,例如:1/7的標籤,即該標籤包括“1”和“7”這兩個數字。具體可以是如第3圖所示,第3圖所示的網頁為上述當前網頁,標籤301和標籤302分別表示進入上一頁和進入下一頁的標籤,標籤303表示為父節點的標籤和兄弟節點的標籤中包括兩個以上的數字的標籤,這樣上述步驟就可以選擇出標籤302為上述目標標籤。 The second candidate label may be at least two labels, and the at least two labels The height of the label is consistent, and the height may be the height of the position of the label in the web page. In this way, through step (a) and step (b), at least one set of highly consistent and href attributes are selected as non-active connection attributes, and the click event is a second candidate tag of the Java script. The second selected label may be selected from the at least one set of second candidate labels, and the label of the specific position in the second selected label is used as the target label, wherein the specific location may be a preset location, for example. The specific position may specifically be a label on the right side, that is, a label having a position on the right side of the second selected label is used as the target label. In addition, step (c) may specifically be: selecting, from the at least one set of second candidate tags, a tag of the parent node and a tag of the sibling node, wherein only one tag includes a second candidate tag of two or more digits, and then the parent node Only one of the tags of the tag and the sibling node includes a second candidate tag of two or more digits as the second selected tag. In the actual application, the label of the parent node of the label for connecting the next webpage and the label of the sibling node may have a label indicating that the current webpage is the first page, for example, the current webpage is the first page of the content type webpage, And the content type webpage is split into 7 pages, then the label of the parent node of the label for connecting the next webpage and the label of the sibling node include a 7 page for indicating that the current webpage is a content type webpage. The first page, for example: 1/7 label, ie the label includes the numbers "1" and "7". Specifically, as shown in FIG. 3, the webpage shown in FIG. 3 is the current webpage, and the label 301 and the label 302 respectively represent labels that enter the previous page and enter the next page, and the label 303 represents the label of the parent node and The tag of the sibling node includes tags of two or more digits, so that the above step can select the tag 302 as the target tag.

透過上述描述就可以實現透過連接標籤的屬性以及位置、父節點、兄弟節點的特徵獲取上述目標標籤。 Through the above description, the target tag can be obtained through the attributes of the connection tag and the features of the location, the parent node, and the sibling node.

可選的,上述預設標籤條件具體可以包括:href屬性中的超文字標記語言(Hyper Text Mark-up Language;HTML,以下稱HTML)為整數,且高度與至少一個連接標籤的高度一致,且父節點的標籤中只有一個標籤包括兩個以上的數字。 Optionally, the preset label condition may include: a Hyper Text Mark-up Language (HTML, hereinafter referred to as HTML) is an integer, and the height is consistent with the height of the at least one connection label, and Only one of the labels of the parent node includes more than two numbers.

也就是說,步驟S203判斷出的目標標籤的href屬性中的 HTML為整數,且該目標標籤的高度與至少一個連接標籤的高度一致,且該目標標籤的父節點的標籤中只有一個標籤包括兩個以上的數字。另外,該父節點具體可以是兩層父節點。 That is, in the href attribute of the target tag determined in step S203 The HTML is an integer, and the height of the target tag is consistent with the height of at least one of the connected tags, and only one of the tags of the parent node of the target tag includes more than two numbers. In addition, the parent node may specifically be a two-layer parent node.

可選的,步驟S203具體可以包括:(d)獲取所述當前網頁的連接標籤中href屬性中的HTML為整數的第一候選標籤;(e)從所述第一候選標籤中獲取至少一組第二候選標籤,所述第二候選標籤包括至少兩個高度一致的第一候選標籤;(f)從所述至少一組第二候選標籤中選擇出第二選定標籤,並將所述第二選定標籤中特定位置的標籤作為用於連接下一網頁的目標標籤,其中所述第二選定標籤的父節點的標籤中只有一個標籤包括兩個以上的數字。 Optionally, the step S203 may include: (d) acquiring a first candidate label in which the HTML in the href attribute of the current webpage is an integer; (e) acquiring at least one group from the first candidate label. a second candidate tag, the second candidate tag includes at least two highly consistent first candidate tags; (f) selecting a second selected tag from the at least one set of second candidate tags, and the second A tag at a specific location in the selected tag acts as a target tag for connecting to the next web page, wherein only one of the tags of the parent node of the second selected tag includes more than two digits.

上述第二候選標籤具體可以是至少兩個標籤,且該至少兩個標籤的高度一致,上述高度具體可以是標籤在網頁中所處的位置的高度。透過步驟(d)和步驟(e)就可以選擇出至少一組高度一致,且href屬性中的HTML為整數的第二候選標籤。透過步驟(f)可以從至少一組第二候選標籤中選擇出第二選定標籤,再將第二選定標籤中特定位置的標籤作為上述目標標籤,其中該特定位置具體可以是右邊的標籤,即將上述第二選定標籤中位置在右邊的標籤作為上述目標標籤。 The second candidate label may be at least two labels, and the heights of the at least two labels are consistent, and the height may be a height of a position where the label is located in the webpage. Through the step (d) and the step (e), at least one set of second candidate tags whose height is consistent and the HTML in the href attribute is an integer can be selected. The second selected label may be selected from the at least one set of the second candidate labels, and the label of the specific position in the second selected label is used as the target label, where the specific position may specifically be the label on the right side, that is, The label on the right side of the second selected label is used as the target label.

透過上述描述就可以實現透過連接標籤的屬性以及位置、父節點的特徵獲取上述目標標籤。 Through the above description, the target tag can be obtained through the attributes of the connection tag and the location and the characteristics of the parent node.

步驟S204:獲取與所述目標標籤對應且與所述當前網頁的URL連結資訊滿足相似度規則的目標URL連結資訊。 Step S204: Acquire target URL link information corresponding to the target tag and the URL link information of the current webpage satisfies the similarity rule.

可選的,所述滿足相似度規則可以是指兩個連結資訊包括的功能變數名稱相同、路徑相同,且包含至少一個相同的查詢參數。 Optionally, the satisfying the similarity rule may be that the two link information includes the same function variable name, the same path, and at least one identical query parameter.

可選的,步驟S204具體可以包括:獲取所述目標標籤包括且與所述當前網頁的URL連結資訊滿足相似度規則的目標URL連結資訊,即該目標標籤包括上述目標URL連結資訊,這樣步驟S204就可以直接從該 目標標籤包括的內容中獲取到上述目標URL連結資訊。 Optionally, the step S204 may include: acquiring the target URL link information that is included in the target tag and the URL link information of the current webpage meets the similarity rule, that is, the target tag includes the target URL link information, and the step S204 is performed. You can go directly from this The target URL link information is obtained from the content included in the target tag.

可選的,步驟S204具體可以包括:執行所述目標標籤所包括的Java腳本執行函數,並擷取執行所述Java腳本執行函數得到的連結資訊,且在擷取到該連結資訊時,停止執行所述Java腳本執行函數;以及從所述擷取的連結資訊中獲取與所述當前網頁的URL連結資訊滿足相似度規則的目標URL連結資訊。 Optionally, the step S204 may include: executing a Java script execution function included in the target tag, and extracting the link information obtained by executing the Java script execution function, and stopping execution when the link information is captured. The Java script execution function; and obtaining, from the extracted link information, target URL link information that satisfies the similarity rule with the URL link information of the current web page.

也就是說,上述目標標籤包括Java腳本執行函數,其中Java腳本執行函數為網頁技術中習知的函數,此處不作詳細說明。步驟S204主動執行該Java腳本執行函數,在執行該函數的過程中就會得到上述連結資訊,當步驟S204擷取到該連結資訊時,就會停止執行該Java腳本執行函數,再從該連結資訊中獲取到上述目標URL連結資訊。具體可以是在執行步驟S204時開啟監聽網路請求,以監聽非同步的JavaScript與XML技術(Asynchronous JavaScript and XML;Ajax,以下稱Ajax)請求,當執行上述Java腳本執行函數時,執行該函數所得到的結果都會被監聽到,亦即可以即時擷取執行上述Java腳本執行函數得到的連結資訊,當擷取到該連結資訊時,就可以停止執行該Java腳本執行函數。上述Ajax請求為網頁技術中習知的技術,此處不作詳細說明。 That is to say, the above target tag includes a Java script execution function, wherein the Java script execution function is a conventional function in webpage technology, and will not be described in detail herein. Step S204 actively executes the Java script execution function, and the link information is obtained during the execution of the function. When the link information is retrieved in step S204, the execution of the Java script execution function is stopped, and the link information is Get the above target URL link information. Specifically, when the step S204 is performed, the interception network request is started to listen to the asynchronous JavaScript and XML technology (Asynchronous JavaScript and XML; Ajax, hereinafter referred to as Ajax) request, and when the above Java script execution function is executed, the function is executed. The obtained result will be monitored, that is, the link information obtained by executing the above Java script execution function can be retrieved immediately, and when the link information is retrieved, the execution of the Java script execution function can be stopped. The Ajax request described above is a well-known technique in webpage technology and will not be described in detail herein.

透過上述步驟就可以實現透過目標標籤所包括的Java腳本執行函數得到上述目標URL連結資訊。 Through the above steps, the above-mentioned target URL link information can be obtained through the Java script execution function included in the target tag.

步驟S205:下載所述目標URL連結資訊的網頁內容至本地。 Step S205: Download the webpage content of the target URL link information to the local.

步驟S206:當接收到輸入的用於連接所述下一網頁的請求時,從本地獲取所述目標URL連結資訊的網頁內容,並顯示所述目標URL連結資訊的網頁內容。 Step S206: When receiving the input request for connecting the next webpage, acquiring the webpage content of the target URL link information from the locality, and displaying the webpage content of the target URL link information.

可選的,在執行完步驟S204之後,在執行步驟S205之前,所述方法還可以包括:修改上述目標標籤的圖像,以提示使用者該目標標籤的下一網頁的網頁內容已經下載至本地。 Optionally, after the step S204 is performed, before the step S205 is performed, the method may further include: modifying an image of the target tag to prompt the user that the webpage content of the next webpage of the target tag has been downloaded to the local .

可選的,上述方法具體可以應用於任何具備通信和顯示網頁功能的設備,即該設備可以實現上述方法,例如:平板電腦、手機、電子閱讀器、遙控器、PC、筆記型電腦、車載設備、網路電視、可穿戴設備等具有網路功能的智慧設備。 Optionally, the foregoing method may be specifically applied to any device having the function of communicating and displaying a webpage, that is, the device can implement the foregoing method, for example, a tablet computer, a mobile phone, an e-reader, a remote controller, a PC, a notebook computer, an in-vehicle device. Network-enabled smart devices such as Internet TV and wearable devices.

上述技術方案中係在上面實施例的基礎上實現先透過關鍵字判斷目標標籤,當透過關鍵字無法判斷出目標標籤時,再透過上述預設標籤條件判斷目標標籤,這樣在實現提高終端顯示網頁效率的同時,還可以實現透過多種不同的實施方式判斷目標標籤。 In the above technical solution, the target label is first determined by using a keyword on the basis of the above embodiment. When the target label cannot be determined through the keyword, the target label is determined through the preset label condition, so that the display page of the terminal is improved. At the same time of efficiency, it is also possible to determine the target tag through a variety of different implementations.

下面以一個具體的應用實例進行舉例說明,請參考第4圖、第5圖和第6圖。 The following is an example of a specific application example, please refer to Figure 4, Figure 5 and Figure 6.

步驟S401:終端顯示一網頁,即使用者瀏覽該網頁。 Step S401: The terminal displays a webpage, that is, the user browses the webpage.

步驟S402:幕後程式啟動預讀識別。 Step S402: The behind-the-scenes program starts the pre-reading recognition.

步驟S403:判斷是否含有預讀關鍵字,若是,則執行步驟S405,若否,則執行步驟S404,預讀關鍵字可以為上面實施例描述的關鍵字。 Step S403: determining whether the pre-read keyword is included, if yes, executing step S405; if not, executing step S404, the pre-reading keyword may be the keyword described in the above embodiment.

步驟S404:判斷是否含有預讀標籤,若是,則執行步驟S405,若否,則結束。 Step S404: It is determined whether or not the pre-reading label is included. If yes, step S405 is performed, and if not, the processing ends.

步驟S405:獲取相關的連結資訊,即獲取上述關鍵字或者預讀標籤對應的連結資訊,該連結資訊具體可以是上面實施例描述的目標URL連結資訊。 In step S405, the related link information is obtained, that is, the link information corresponding to the keyword or the pre-reading tag is obtained, and the link information may specifically be the target URL link information described in the above embodiment.

步驟S406:下載該連結資訊對應的網頁內容。 Step S406: Download the webpage content corresponding to the link information.

步驟S407:將下載到的網頁內容加到頁面瀏覽控制裝置。 Step S407: Add the downloaded webpage content to the page browsing control apparatus.

步驟S408:頁面瀏覽裝置顯示下載的網頁內容,即使用者透過頁面瀏覽裝置瀏覽下載的網頁內容。 Step S408: The page browsing device displays the downloaded webpage content, that is, the user browses the downloaded webpage content through the page browsing device.

如第5圖所示,步驟S403可以包括:步驟S501:獲取網頁的所有a標籤或button標籤。 As shown in FIG. 5, step S403 may include: step S501: acquiring all a tags or button tags of the webpage.

步驟S502:判斷所有a標籤或button標籤是否包含預讀關鍵字,若是,執行步驟S503,若否,則結束。 Step S502: It is determined whether all the a-labels or button tags contain the pre-read keywords, and if so, step S503 is performed, and if not, the process ends.

步驟S503:獲取包含預讀關鍵字的標籤的連結資訊。 Step S503: Acquire link information of the label including the pre-read keyword.

步驟S504:判斷標籤的連結資訊是否為URL連結資訊,若是,則執行步驟S5010,若否,則執行步驟S505。 Step S504: determining whether the link information of the tag is the URL link information, if yes, executing step S5010, and if no, executing step S505.

步驟S505:判斷標籤的連結資訊是否為Java腳本執行函數,若是,則執行步驟S506,若否,則結束。 Step S505: determining whether the link information of the tag is a Java script execution function, and if so, executing step S506, and if not, ending.

步驟S506:監聽網路請求並監聽Ajax請求。 Step S506: Listening to the network request and listening to the Ajax request.

步驟S507:主動執行Java腳本執行函數。 Step S507: Actively execute the Java script execution function.

步驟S508:擷取執行Java腳本執行函數的請求,再取消該請求。 Step S508: Capture a request to execute a Java script execution function, and then cancel the request.

步驟S509:獲取執行Java腳本執行函數的請求的位址資訊,即URL連結資訊。 Step S509: Acquire address information of a request for executing a Java script execution function, that is, URL link information.

步驟S5010:比較獲取的URL連結資訊與當前連結的相似度。 Step S5010: Compare the similarity between the obtained URL link information and the current link.

步驟S5011:判斷獲取的URL連結資訊與當前連結是否滿足相似度規則,若是,則執行步驟S5012,若否,則結束。 Step S5011: It is determined whether the acquired URL link information and the current link satisfy the similarity rule. If yes, step S5012 is performed, and if not, the process ends.

步驟S5012:確定獲取的URL連結資訊為合法的預讀位址。 Step S5012: Determine that the obtained URL link information is a legal pre-read address.

如第6圖所示,第4圖之步驟S404具體可以包括:步驟S601:獲取該網頁的所有a或button標籤。 As shown in FIG. 6, step S404 of FIG. 4 may specifically include: Step S601: Acquire all a or button tags of the webpage.

步驟S602:保留href屬性為javascript:(0)或者javascript::或者#的標籤,且點擊事件的腳本為Java腳本(JavaScript)的a和/或button標籤。 Step S602: The tag whose href attribute is javascript:(0) or javascript:: or # is reserved, and the script of the click event is a and/or button tag of the Javascript (JavaScript).

步驟S603:選擇高度一樣且只有兩個的a或button標籤,並且遍歷三層這些標籤的父節點和兄弟節點。 Step S603: Select a or a button tag of the same height and only two, and traverse the parent node and the sibling node of the three layers of these tags.

步驟S607:判斷上述選擇的父節點和兄弟節點是否滿足數字判斷策略,若是,則執行步驟S608,若否,則結束,其中數字判斷策略 指的是節點中僅有一個節點的標籤包括兩個以上的數字。 Step S607: determining whether the selected parent node and the sibling node satisfy the digital judgment policy, and if yes, executing step S608, and if not, ending, wherein the number determining strategy Refers to the label of only one node in the node including more than two numbers.

步驟S608:執行上述高度一樣且只有兩個的a或button標籤的右邊的標籤的Java腳本執行函數。 Step S608: Execute the Java script execution function of the tag of the right side of the same height and only two a or button tags.

步驟S609:監聽網路請求並監聽Ajax請求。 Step S609: Listening to the network request and listening to the Ajax request.

步驟S6010:主動執行Java腳本執行函數的請求的位址資訊,即URL連結資訊。 Step S6010: Actively execute the address information of the request of the Java script execution function, that is, the URL link information.

步驟S6011:擷取執行Java腳本執行函數的請求,再取消該請求。 Step S6011: Capture the request to execute the Java script execution function, and then cancel the request.

步驟S6012:獲取執行Java腳本執行函數的請求的位址資訊,即URL連結資訊。 Step S6012: Acquire the address information of the request for executing the Java script execution function, that is, the URL link information.

步驟S6013:比較獲取的URL連結資訊與當前連結的相似度。 Step S6013: Compare the similarity between the obtained URL link information and the current link.

步驟S6014:判斷獲取的URL連結資訊與當前連結是否滿足相似度規則,若是,則執行步驟S6015,若否,則結束。 Step S6014: It is determined whether the acquired URL link information and the current link satisfy the similarity rule. If yes, step S6015 is performed, and if not, the process ends.

步驟S6015:確定獲取的URL連結資訊為合法的預讀位址。 Step S6015: It is determined that the obtained URL link information is a legal pre-read address.

如第6圖所示,第4圖之步驟S404具體還可以包括:步驟S601:獲取網頁的獲取該網頁的所有a或button標籤。 As shown in FIG. 6, step S404 of FIG. 4 may further include: Step S601: Acquire all a or button tags of the webpage for acquiring the webpage.

步驟S604:保留innerHTML為整數的標籤。 Step S604: Keep the innerHTML as an integer tag.

步驟S605:查詢兩層父節點,把高度一致並且順序排列的標籤保存下來。 Step S605: Query the two layers of the parent node, and save the labels with the same height and order.

步驟S606:查找高度一致的標籤的a或button標籤,並且遍歷三層這些標籤的父節點和兄弟節點。 Step S606: Find the a or button tag of the highly consistent tag, and traverse the parent node and the sibling node of the three layers of these tags.

步驟S607:判斷上述選擇的父節點和兄弟節點是否判斷數字判斷策略,若是,則執行步驟S608,若否,則結束,其中數字判斷策略指的節點中僅有一個節點的標籤包括兩個以上的數字。 Step S607: determining whether the selected parent node and the sibling node determine the digital judgment policy, and if yes, executing step S608, and if not, ending, wherein the number of nodes of the node indicated by the digital judgment policy includes more than two tags. digital.

步驟S608:執行上述高度一樣且只有兩個的a或button標籤 的右邊的標籤的Java腳本執行函數。 Step S608: Execute the above-mentioned height and only two a or button labels The Java script execution function for the label on the right.

步驟S609:監聽網路請求並監聽Ajax請求。 Step S609: Listening to the network request and listening to the Ajax request.

步驟S6010:主動執行Java腳本執行函數的請求的位址資訊,即URL連結資訊。 Step S6010: Actively execute the address information of the request of the Java script execution function, that is, the URL link information.

步驟S6011:擷取執行Java腳本執行函數的請求,再取消該請求。 Step S6011: Capture the request to execute the Java script execution function, and then cancel the request.

步驟S6012:獲取執行Java腳本執行函數的請求的位址資訊,即URL連結資訊。 Step S6012: Acquire the address information of the request for executing the Java script execution function, that is, the URL link information.

步驟S6013:比較獲取的URL連結資訊與當前連結的相似度。 Step S6013: Compare the similarity between the obtained URL link information and the current link.

步驟S6014:判斷獲取的URL連結資訊與當前連結是否滿足相似度規則,若是,則執行步驟S6015,若否,則結束。 Step S6014: It is determined whether the acquired URL link information and the current link satisfy the similarity rule. If yes, step S6015 is performed, and if not, the process ends.

步驟S6015:確定獲取的URL連結資訊為合法的預讀位址。 Step S6015: It is determined that the obtained URL link information is a legal pre-read address.

如第7圖所示,第4圖之步驟S407可以包括:步驟S701:預讀頁面拉取完畢。 As shown in FIG. 7, step S407 of FIG. 4 may include: step S701: the pre-read page is pulled.

步驟S702:把預讀頁面暫存至頁面控制暫存中。 Step S702: temporarily storing the pre-read page into the page control temporary storage.

步驟S703:更新瀏覽器的前進按鈕,並透過高亮或陰影修改網頁預讀的標籤。 Step S703: Update the forward button of the browser, and modify the pre-read label of the webpage by highlighting or shading.

步驟S704:當使用者點擊前進按鈕或預讀標籤時,則把預讀頁面顯示出來,並把當前頁面隱藏起來。本發明實施例中“網頁”和“頁面”不作區分,即“網頁”和“頁面”表示的內容相同。 Step S704: When the user clicks the forward button or pre-reads the label, the pre-read page is displayed and the current page is hidden. In the embodiment of the present invention, “webpage” and “page” are not distinguished, that is, the content represented by “webpage” and “page” is the same.

下面為本發明裝置實施例,本發明裝置實施例用於執行本發明上述的方法實施例,為了便於說明,僅示出了與本發明實施例相關的部分,具體技術細節未揭示的,請參照本發明上述的方法實施例。 The following is an embodiment of the device of the present invention. The device embodiment of the present invention is used to perform the foregoing method embodiments of the present invention. For the convenience of description, only parts related to the embodiment of the present invention are shown. For details of the technical disclosure, please refer to Embodiments of the above method of the present invention.

請參考第8圖,第8圖是本發明實施例提供的一種網頁顯示裝置的結構示意圖,如第8圖所示,包括:判斷模組81、獲取模組82、下載模 組83和顯示模組84。 Please refer to FIG. 8. FIG. 8 is a schematic structural diagram of a webpage display device according to an embodiment of the present invention. As shown in FIG. 8, the method includes: a determining module 81, an obtaining module 82, and a downloading module. Group 83 and display module 84.

判斷模組81用於判斷當前網頁的連接標籤是否包括用於連接下一網頁的目標標籤,其中所述連接標籤為用於連接網頁的標籤,所述下一網頁的網頁內容位於所述當前網頁的網頁內容之後,且與所述當前網頁的網頁內容連續。 The determining module 81 is configured to determine whether the connection label of the current webpage includes a target label for connecting to the next webpage, where the connection label is a label for connecting the webpage, and the webpage content of the next webpage is located on the current webpage. After the webpage content, and the webpage content of the current webpage is continuous.

獲取模組82用於當所述判斷模組81的判斷結果為是時,獲取與所述目標標籤對應且與所述當前網頁的URL連結資訊滿足相似度規則的目標URL連結資訊。 The obtaining module 82 is configured to acquire the target URL link information corresponding to the target tag and the URL link information of the current web page to satisfy the similarity rule when the determination result of the determining module 81 is YES.

可選的,上述滿足相似度規則可以是指兩個連結資訊包括的功能變數名稱相同、路徑相同,且包含至少一個相同的查詢參數。 Optionally, the satisfying the similarity rule may be that the two link information includes the same function variable name, the same path, and at least one identical query parameter.

下載模組83用於下載所述獲取模組82獲取的目標URL連結資訊的網頁內容至本地。 The download module 83 is configured to download the webpage content of the target URL link information acquired by the obtaining module 82 to the local.

顯示模組84用於當接收到輸入的用於連接所述下一網頁的請求時,從本地獲取所述下載模組83下載的所述目標URL連結資訊的網頁內容,並顯示所述目標URL連結資訊的網頁內容。 The display module 84 is configured to: when receiving the input request for connecting the next webpage, locally acquire the webpage content of the target URL link information downloaded by the download module 83, and display the target URL. The content of the webpage linking the information.

可選的,上述連接標籤可以包括a標籤和/或button標籤。 Optionally, the connection label may include an a label and/or a button label.

可選的,如第9圖所示,所述判斷模組81可以包括:第一判斷單元811、第一確定單元812以及第二確定單元813。 Optionally, as shown in FIG. 9, the determining module 81 may include: a first determining unit 811, a first determining unit 812, and a second determining unit 813.

第一判斷單元811用於判斷所述當前網頁的連接標籤是否包括含有表示連接下一網頁的關鍵字的目標標籤。 The first determining unit 811 is configured to determine whether the connection label of the current webpage includes a target label that includes a keyword indicating that the next webpage is connected.

第一確定單元812用於當所述第一判斷子單元811的判斷結果為是時,將所述目標標籤作為用於連接下一網頁的目標標籤。 The first determining unit 812 is configured to use the target tag as a target tag for connecting to the next webpage when the determination result of the first determining sub-unit 811 is YES.

第二確定單元813用於當所述第一判斷子單元811判斷結果為否時,將所述當前網頁的滿足預設標籤條件的連接標籤作為用於連接下一網頁的目標標籤。 The second determining unit 813 is configured to: when the first determining sub-unit 811 determines that the result is no, the connection label of the current webpage that satisfies the preset label condition is used as the target label for connecting the next webpage.

可選的,獲取模組82還用於當第二判斷單元813的判斷結果 為是時或者第一確定單元812將所述目標標籤作為用於連接下一網頁的目標標籤時,獲取與所述目標標籤對應且與所述當前網頁的URL連結資訊滿足相似度規則的目標URL連結資訊。 Optionally, the obtaining module 82 is further used to determine the result of the second determining unit 813. When yes or when the first determining unit 812 uses the target tag as a target tag for connecting to the next webpage, acquiring a target URL corresponding to the target tag and matching the URL of the current webpage to satisfy a similarity rule Link information.

可選的,所述預設標籤條件可以包括:href屬性為不主動連接屬性,且點擊事件的腳本為Java腳本,且高度與至少一個連接標籤的高度一致,且父節點的標籤和兄弟節點的標籤中只有一個標籤包括兩個以上的數字。 Optionally, the preset label condition may include: the href attribute is a non-active connection attribute, and the script of the click event is a Java script, and the height is consistent with the height of the at least one connection label, and the label of the parent node and the sibling node are Only one tag in a tag contains more than two numbers.

所述第二確定單元813可以包括第一獲取子單元8131、第二獲取子單元8132以及第一確定子單元8133。 The second determining unit 813 may include a first obtaining subunit 8131, a second obtaining subunit 8132, and a first determining subunit 8133.

第一獲取子單元用於獲取所述當前網頁的連接標籤中href屬性為不主動連接屬性,且點擊事件為Java腳本的標籤為第一候選標籤。 The first obtaining sub-unit is configured to obtain the non-active connection attribute in the connection label of the current webpage, and the label whose click event is a Java script is the first candidate label.

第二獲取子單元8132用於從所述第一候選標籤中獲取至少一組第二候選標籤,所述第二候選標籤包括至少兩個高度一致的第一候選標籤。 The second obtaining sub-unit 8132 is configured to obtain at least one set of second candidate tags from the first candidate tags, where the second candidate tags include at least two first candidate tags that are highly consistent.

第一確定子單元8133用於從所述至少一組第二候選標籤中選擇第二選定標籤,並將所述第二選定標籤中特定位置的標籤作為所述目標標籤,其中所述第二選定標籤的父節點的標籤和兄弟節點的標籤中只有一個標籤包括兩個以上的數字。 The first determining subunit 8133 is configured to select a second selected tag from the at least one set of second candidate tags, and use a tag of a specific location in the second selected tag as the target tag, wherein the second selection Only one of the labels of the parent node of the label and the label of the sibling node includes more than two digits.

透過上述描述就可以實現透過連接標籤的屬性以及位置、父節點、兄弟節點的特徵獲取上述目標標籤。 Through the above description, the target tag can be obtained through the attributes of the connection tag and the features of the location, the parent node, and the sibling node.

可選的,所述預設標籤條件可以包括:href屬性中的HTML為整數,且高度與至少一個連接標籤的高度一致,且父節點的標籤中只有一個標籤包括兩個以上的數字。 Optionally, the preset label condition may include: the HTML in the href attribute is an integer, and the height is consistent with the height of the at least one connection label, and only one of the labels of the parent node includes more than two numbers.

所述第二確定單元813還可以包括第三獲取子單元8134、第四獲取子單元8135以及第二確定子單元8136。 The second determining unit 813 may further include a third obtaining subunit 8134, a fourth obtaining subunit 8135, and a second determining subunit 8136.

第三獲取子單元8134用於獲取所述當前網頁的連接標籤中 href屬性中的HTML為整數的第一候選標籤。 The third obtaining subunit 8134 is configured to obtain the connection label of the current webpage. The HTML in the href attribute is the first candidate label for the integer.

第四獲取子單元8135用於從所述第一候選標籤中獲取至少一組第二候選標籤,所述第二候選標籤包括至少兩個高度一致的第一候選標籤。 The fourth obtaining sub-unit 8135 is configured to obtain at least one set of second candidate tags from the first candidate tags, where the second candidate tags include at least two first candidate tags that are highly consistent.

第二確定子單元8136用於從所述至少一組第二候選標籤中選擇出第二選定標籤,並將所述第二選定標籤中特定位置的標籤作為所述目標標籤,其中所述第二選定標籤的所述父節點的標籤中只有一個標籤包括兩個以上的數字。 The second determining subunit 8136 is configured to select a second selected tag from the at least one set of second candidate tags, and use a tag of a specific location in the second selected tag as the target tag, where the second Only one of the labels of the parent node of the selected tag includes more than two digits.

透過上述描述就可以實現透過連接標籤的屬性以及位置、父節點的特徵獲取上述目標標籤。 Through the above description, the target tag can be obtained through the attributes of the connection tag and the location and the characteristics of the parent node.

可選的,所述獲取模組82還可以用於獲取所述目標標籤包括的且與所述當前網頁的URL連結資訊滿足相似度規則的目標URL連結資訊;或者所述獲取模組82還可以用於執行所述目標標籤包括的Java腳本執行函數,並擷取執行所述Java腳本執行函數得到的連結資訊,且在擷取到該連結資訊時,停止執行所述Java腳本執行函數;以及從所述擷取的連結資訊中獲取與所述當前網頁的URL連結資訊滿足相似度規則的目標URL連結資訊。 Optionally, the obtaining module 82 is further configured to obtain target URL link information that is included in the target tag and that is linked to the URL of the current webpage to satisfy a similarity rule; or the obtaining module 82 is further And executing the Java script execution function included in the target tag, and extracting the link information obtained by executing the Java script execution function, and stopping executing the Java script execution function when extracting the link information; Obtaining the target URL link information that satisfies the similarity rule by the URL link information of the current webpage in the captured link information.

透過上述步驟就可以實現透過目標標籤包括的Java腳本執行函數得到上述目標URL連結資訊。 Through the above steps, the above-mentioned target URL link information can be obtained through the Java script execution function included in the target tag.

上述技術方案包括:判斷當前網頁的連接標籤是否包括用於連接下一網頁的目標標籤;當所述判斷結果為是時,獲取與所述目標標籤對應且與所述當前網頁的URL連結資訊滿足相似度規則的目標URL連結資訊;下載所述目標URL連結資訊的網頁內容至本地;以及當接收到輸入的用於連接所述下一網頁的請求時,從本地獲取所述目標URL連結資訊的網頁內容,並顯示所述目標URL連結資訊的網頁內容。這樣可以實現在接收到輸入的用於連接所述下一網頁的請求之前,就將下一網頁的網頁內容下 載至本地,當接收到該請求時,就可以直接從本地獲取下一網頁的網頁內容,從而可以提高終端顯示網頁的效率。 The technical solution includes: determining whether the connection label of the current webpage includes a target label for connecting to the next webpage; and when the determining result is yes, acquiring the URL connection information corresponding to the target label and the current webpage is satisfied. a target URL link information of the similarity rule; downloading the webpage content of the target URL link information to the local; and acquiring the target URL link information locally when receiving the input request for connecting the next webpage The content of the webpage and the webpage content of the target URL link information. In this way, before receiving the input request for connecting the next webpage, the content of the webpage of the next webpage is When it is received locally, when the request is received, the content of the webpage of the next webpage can be directly obtained from the local, thereby improving the efficiency of displaying the webpage by the terminal.

本發明所屬技術領域中具有通常知識者可以理解實現上述實施例方法中的全部或部分流程可以透過電腦程式來指令相關的硬體完成,所述程式包括指令集合並可以儲存於一電腦可讀取儲存介質中,該程式在執行時,可包括如上述各實施例方法中的流程。所述電腦可讀取儲存介質可為磁碟、光碟、唯讀記憶體(Read Only Memory;ROM)或隨機存取記憶體(Random Access Memory;RAM)等。 Those skilled in the art can understand that all or part of the process of implementing the above embodiments can be used to instruct related hardware completion through a computer program, the program includes a set of instructions and can be stored in a computer readable. In the storage medium, the program, when executed, may include the processes in the methods of the various embodiments described above. The computer readable storage medium may be a magnetic disk, a optical disk, a read only memory (ROM), or a random access memory (RAM).

雖然本發明已用較佳實施例揭露如上,然其並非用以限定本發明,本發明所屬技術領域中具有通常知識者在不脫離本發明之精神和範圍內,當可作各種之更動與潤飾,因此本發明之保護範圍當視後附之申請專利範圍所界定者為準。 While the invention has been described above by way of a preferred embodiment, the invention is not intended to be limited thereto, and the invention may be modified and modified without departing from the spirit and scope of the invention. Therefore, the scope of the invention is defined by the scope of the appended claims.

S101-S104‧‧‧步驟 S101-S104‧‧‧Steps

Claims (15)

一種網頁顯示方法,包括:判斷一當前網頁之一連接標籤是否包括一目標標籤,所述連接標籤為用於連接網頁的標籤,所述目標標籤用於連接網頁內容位於所述當前網頁的網頁內容之後且與所述當前網頁的網頁內容連續之一下一網頁;當判斷結果為是時,獲取一目標URL連結資訊,所述目標URL連結資訊係與所述目標標籤對應且與所述當前網頁之一URL連結資訊滿足一相似度規則;下載所述目標URL連結資訊的網頁內容至本地;以及當接收到連接所述下一網頁之一請求時,從本地獲取所述目標URL連結資訊的網頁內容並顯示所述目標URL連結資訊的網頁內容。 A webpage display method includes: determining whether a connection label of a current webpage includes a target label, the connection label is a label for connecting a webpage, and the target label is used for connecting webpage content of the webpage content to the current webpage And a next webpage that is continuous with the webpage content of the current webpage; when the determination result is yes, acquiring a target URL link information, where the target URL link information corresponds to the target webpage and is related to the current webpage a URL link information satisfies a similarity rule; downloading the webpage content of the target URL link information to the local; and acquiring the webpage content of the target URL link information locally when receiving a request to connect to the next webpage And displaying the content of the webpage of the target URL link information. 根據申請專利範圍第1項所述之網頁顯示方法,其中判斷所述當前網頁之所述連接標籤是否包括所述目標標籤的步驟包括:判斷所述當前網頁之所述連接標籤是否包括含有表示連接所述下一網頁之一關鍵字的標籤,若是,則將所述標籤作為用於連接所述下一網頁之所述目標標籤,若否,則將所述當前網頁滿足一預設標籤條件的標籤作為用於連接所述下一網頁之所述目標標籤。 The method for displaying a webpage according to claim 1, wherein the step of determining whether the connection label of the current webpage includes the target label comprises: determining whether the connection label of the current webpage includes a connection indication a label of a keyword of the next webpage, if yes, using the label as the target label for connecting the next webpage, and if not, satisfying the current webpage with a preset label condition The tag acts as the target tag for connecting to the next web page. 根據申請專利範圍第2項所述之網頁顯示方法,其中所述預設標籤條件包括:超文字引用屬性為不主動連接屬性、點擊事件的腳本為Java腳本、高度與所述當前網頁之至少一連接標籤的高度一致、且父節點的標籤和兄弟節點的標籤中只有一個標籤包括兩個以上的數字;將所述當前網頁滿足所述預設標籤條件的標籤作為用於連接所述下一網頁之所述目標標籤的步驟包括:獲取所述當前網頁之連接標籤中超文字引用屬性為不主動連接屬性,且點擊事件為Java腳本的標籤並設為第一候選標籤; 從所述第一候選標籤中獲取至少一組第二候選標籤,所述至少一組第二候選標籤包括至少兩個高度一致的第一候選標籤;以及從所述至少一組第二候選標籤中選擇出第二選定標籤,並將所述第二選定標籤中特定位置的標籤作為用於連接所述下一網頁之所述目標標籤,其中所述第二選定標籤之父節點的標籤和兄弟節點的標籤中只有一個標籤包括兩個以上的數字。 The webpage display method according to claim 2, wherein the preset label condition comprises: a hypertext reference attribute is a non-active connection attribute, a script for clicking an event is a Java script, and a height is at least one of the current webpage. The height of the connection label is consistent, and only one of the label of the parent node and the label of the sibling node includes more than two digits; the label that satisfies the preset webpage condition of the current webpage is used as a connection for connecting the next webpage. The step of the target tag includes: obtaining a hypertext reference attribute in the connection tag of the current webpage as a non-active connection attribute, and clicking a tag as a Java script and setting the first candidate tag; Obtaining at least one set of second candidate tags from the first candidate tags, the at least one set of second candidate tags comprising at least two highly consistent first candidate tags; and from the at least one set of second candidate tags Selecting a second selected tag and using the tag of the specific location in the second selected tag as the target tag for connecting the next web page, wherein the parent node of the second selected tag has a tag and a sibling node Only one of the labels contains more than two numbers. 根據申請專利範圍第2項所述之網頁顯示方法,其中所述預設標籤條件包括:超文字引用屬性中的HTML為整數、高度與所述當前網頁之至少一連接標籤的高度一致、父節點的標籤中只有一個標籤包括兩個以上的數字;將所述當前網頁的滿足所述預設標籤條件的標籤作為用於連接所述下一網頁之所述目標標籤的步驟包括:獲取所述當前網頁之連接標籤中超文字引用屬性中的HTML為整數的標籤並設為第一候選標籤;從所述第一候選標籤中獲取至少一組第二候選標籤,所述至少一組第二候選標籤包括至少兩個高度一致的第一候選標籤;以及從所述至少一組第二候選標籤中選擇出第二選定標籤,並將所述第二選定標籤中特定位置的標籤作為用於連接所述下一網頁之所述目標標籤,其中所述第二選定標籤的父節點的標籤中只有一個標籤包括兩個以上的數字。 The webpage display method of claim 2, wherein the preset label condition comprises: the HTML in the hypertext reference attribute is an integer, the height is consistent with the height of at least one connection label of the current webpage, and the parent node Only one label of the label includes more than two digits; the step of using the label of the current webpage that satisfies the preset label condition as the target label for connecting the next webpage includes: acquiring the current The HTML in the hypertext reference attribute of the webpage connection tag is an integer tag and is set as a first candidate tag; and at least one set of second candidate tags is obtained from the first candidate tag, the at least one set of second candidate tags includes At least two highly consistent first candidate tags; and selecting a second selected tag from the at least one set of second candidate tags, and using a tag of a specific location in the second selected tag as a connection for the The target tag of a web page, wherein only one of the tags of the parent node of the second selected tag includes more than two digits. 根據申請專利範圍第1至4項任一項所述之網頁顯示方法,其中獲取所述目標URL連結資訊的步驟中,所述目標URL連結資訊係包括於所述目標標籤中。 The webpage display method according to any one of claims 1 to 4, wherein in the step of acquiring the target URL link information, the target URL link information is included in the target tag. 根據申請專利範圍第1至4項任一項所述之網頁顯示方法,其中獲取所述目標URL連結資訊的步驟包括:執行所述目標標籤所包括之一Java腳本執行函數,擷取執行所述Java 腳本執行函數所得到之一連結資訊,且在擷取到所述連結資訊時,停止執行所述Java腳本執行函數;以及從所述擷取的連結資訊中獲取與所述當前網頁之所述URL連結資訊滿足所述相似度規則之所述目標URL連結資訊。 The webpage display method according to any one of claims 1 to 4, wherein the step of acquiring the target URL link information comprises: executing a Java script execution function included in the target tag, and performing the Java The script execution function obtains one of the link information, and when the link information is retrieved, stops executing the Java script execution function; and obtains the URL of the current webpage from the captured link information The link information satisfies the target URL link information of the similarity rule. 根據申請專利範圍第1至4項任一項所述之網頁顯示方法,其中所述連接標籤包括:a標籤和/或button標籤。 The web page display method according to any one of claims 1 to 4, wherein the connection tag comprises: an a tag and/or a button tag. 根據申請專利範圍第1至4項任一項所述之網頁顯示方法,其中滿足所述相似度規則係指所述目標URL連結資訊係與所述當前網頁之所述URL連結資訊包括的功能變數名稱相同、路徑相同、且包括至少一個相同的查詢參數。 The method for displaying a web page according to any one of claims 1 to 4, wherein the satisfying the similarity rule refers to a function variable included in the URL link information of the target URL link information and the current webpage. The names are the same, the paths are the same, and at least one of the same query parameters is included. 一種網頁顯示裝置,包括:一判斷模組,用於判斷一當前網頁之一連接標籤是否包括一目標標籤,所述連接標籤為用於連接網頁的標籤,所述目標標籤用於連接網頁內容位於所述當前網頁的網頁內容之後且與所述當前網頁的網頁內容連續之一下一網頁;一獲取模組,用於當所述判斷模組的判斷結果為是時,獲取一目標URL連結資訊,所述目標URL連結資訊係與所述目標標籤對應且與所述當前網頁之一URL連結資訊滿足一相似度規則;一下載模組,用於下載所述目標URL連結資訊的網頁內容至本地;以及一顯示模組,用於當接收到連接所述下一網頁之一請求時,從本地獲取所述下載模組下載的所述目標URL連結資訊的網頁內容,並顯示所述目標URL連結資訊的網頁內容。 A webpage display device, comprising: a judging module, configured to determine whether a connection label of a current webpage includes a target label, the connection label is a label for connecting a webpage, and the target label is used to connect the webpage content a webpage after the webpage content of the current webpage and one webpage of the webpage content of the current webpage; an obtaining module, configured to acquire a target URL link information when the judgment result of the judging module is yes, The target URL link information is associated with the target tag and the URL link information of the current web page meets a similarity rule; a download module is configured to download the webpage content of the target URL link information to the local; And a display module, configured to: when receiving a request to connect to the next webpage, locally obtain the webpage content of the target URL link information downloaded by the download module, and display the target URL link information Web content. 根據申請專利範圍第9項所述之網頁顯示裝置,其中所述判斷模組包括: 一第一判斷單元,用於判斷所述當前網頁之所述連接標籤是否包括含有表示連接下一網頁之一關鍵字的標籤;一第一確定單元,用於當所述第一判斷單元的判斷結果為是時,將所述標籤作為用於連接所述下一網頁之所述目標標籤;以及一第二確定單元,用於當所述第一判斷單元的判斷結果為否時,將所述當前網頁滿足一預設標籤條件的標籤作為用於連接所述下一網頁之所述目標標籤。 The webpage display device of claim 9, wherein the judging module comprises: a first determining unit, configured to determine whether the connection label of the current webpage includes a label that includes a keyword indicating that one of the next webpages is connected; a first determining unit, configured to be used by the first determining unit When the result is YES, the tag is used as the target tag for connecting the next webpage; and a second determining unit is configured to: when the judgment result of the first determining unit is negative, The current web page satisfies a predetermined label condition as a target label for connecting the next web page. 根據申請專利範圍第10項所述之網頁顯示裝置,其中所述預設標籤條件包括:超文字引用屬性為不主動連接屬性、點擊事件的腳本為Java腳本、高度與所述當前網頁之至少一個連接標籤的高度一致,且父節點的標籤和兄弟節點的標籤中只有一個標籤包括兩個以上的數字;所述第二確定單元包括:一第一獲取子單元,用於獲取所述當前網頁之連接標籤中超文字引用屬性為不主動連接屬性,且點擊事件為Java腳本的標籤並設為第一候選標籤;一第二獲取子單元,用於從所述第一候選標籤中獲取至少一組第二候選標籤,所述至少一組第二候選標籤包括至少兩個高度一致的第一候選標籤;以及一第一確定子單元,從所述至少一組第二候選標籤中選擇出第二選定標籤,並將所述第二選定標籤中特定位置的標籤作為用於連接下一網頁之所述目標標籤,其中所述第二選定標籤的所述父節點的標籤和兄弟節點的標籤中只有一個標籤包括兩個以上的數字。 The webpage display device according to claim 10, wherein the preset tag condition comprises: a hypertext reference attribute is a non-active connection attribute, a script for clicking an event is a Java script, and a height is at least one of the current web page. The height of the connection label is the same, and only one label of the label of the parent node and the label of the sibling node includes more than two digits; the second determining unit includes: a first obtaining subunit, configured to acquire the current webpage The hypertext reference attribute in the connection tag is a non-active connection attribute, and the click event is a label of the Java script and is set as a first candidate label; and a second acquisition subunit is configured to obtain at least one group from the first candidate label. a second candidate tag, the at least one set of second candidate tags includes at least two highly consistent first candidate tags; and a first determining subunit, selecting a second selected tag from the at least one set of second candidate tags And as the target tag for connecting to the next webpage as the target tag of the second selected tag, wherein the second Only one of the labels of the parent node of the selected tag and the tag of the sibling node includes more than two numbers. 根據申請專利範圍第10項所述之網頁顯示裝置,其中所述預設標籤條件包括:超文字引用屬性中的HTML為整數、高度與所述當前網頁之至少一連 接標籤的高度一致、且父節點的標籤中只有一個標籤包括兩個以上的數字;所述第二確定單元包括:一第三獲取子單元,用於獲取所述當前網頁之連接標籤中超文字引用屬性中的HTML為整數的標籤並設為第一候選標籤;一第四獲取子單元,用於從所述第一候選標籤中獲取至少一組第二候選標籤,所述至少一組第二候選標籤包括至少兩個高度一致的第一候選標籤;以及一第二確定子單元,從所述至少一組第二候選標籤中選擇出第二選定標籤,並將所述第二選定標籤中特定位置的標籤作為用於連接下一網頁之所述目標標籤,其中所述第二選定標籤的父節點的標籤中只有一個標籤包括兩個以上的數字。 The webpage display device according to claim 10, wherein the preset label condition comprises: the HTML in the hypertext reference attribute is an integer, and the height is at least one of the current webpages. The height of the label is consistent, and only one of the labels of the parent node includes more than two digits. The second determining unit includes: a third obtaining subunit, configured to obtain a hypertext reference in the connection label of the current webpage. The HTML in the attribute is a label of an integer and is set as a first candidate label; a fourth obtaining subunit is configured to obtain at least one set of second candidate labels from the first candidate label, the at least one set of second candidates The tag includes at least two first candidate tags of uniform height; and a second determining subunit, selecting a second selected tag from the at least one set of second candidate tags, and selecting a specific location in the second selected tag The tag serves as the target tag for connecting to the next web page, wherein only one of the tags of the parent node of the second selected tag includes more than two digits. 根據申請專利範圍第9至12項任一項所述之網頁顯示裝置,其中所述獲取模組獲取的所述目標URL連結資訊係包括於所述目標標籤中。 The webpage display device according to any one of claims 9 to 12, wherein the target URL link information acquired by the acquisition module is included in the target tag. 根據申請專利範圍第9至12項任一項所述之網頁顯示裝置,其中所述獲取模組進一步用於執行所述目標標籤所包括之一Java腳本執行函數,擷取執行所述Java腳本執行函數所得到之一連結資訊,且在擷取到所述連結資訊時,停止執行所述Java腳本執行函數,所述獲取模組再從所述擷取的連結資訊中獲取與所述當前網頁之所述URL連結資訊滿足所述相似度規則之所述目標URL連結資訊。 The webpage display device according to any one of claims 9 to 12, wherein the acquisition module is further configured to execute a Java script execution function included in the target tag, and execute the execution of the Java script The function obtains one of the link information, and when the link information is retrieved, stops executing the Java script execution function, and the obtaining module obtains the current webpage from the captured link information. The URL link information satisfies the target URL link information of the similarity rule. 一種電腦可讀取儲存介質,其上儲存有指令集合,當該指令集合被執行時,使得該電腦可執行申請專利範圍第1至8項任一項所述之網頁顯示方法。 A computer readable storage medium having stored thereon a set of instructions, wherein when the set of instructions is executed, the computer can execute the web page display method according to any one of claims 1 to 8.
TW103143726A 2013-12-23 2014-12-15 Method and device for displaying web page and computer-readable storage medium TWI519980B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310718142.7A CN104731817B (en) 2013-12-23 2013-12-23 A kind of webpage exhibiting method and device

Publications (2)

Publication Number Publication Date
TW201525740A true TW201525740A (en) 2015-07-01
TWI519980B TWI519980B (en) 2016-02-01

Family

ID=53455714

Family Applications (1)

Application Number Title Priority Date Filing Date
TW103143726A TWI519980B (en) 2013-12-23 2014-12-15 Method and device for displaying web page and computer-readable storage medium

Country Status (3)

Country Link
CN (1) CN104731817B (en)
TW (1) TWI519980B (en)
WO (1) WO2015096660A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106557529B (en) * 2015-09-30 2020-09-08 阿里巴巴集团控股有限公司 Display method and device for jump page in page jump
CN106815269A (en) * 2015-12-02 2017-06-09 北京国双科技有限公司 A kind of method for exhibiting data and device
CN107451160B (en) * 2016-06-01 2020-10-16 阿里巴巴(中国)有限公司 Page pre-reading method and device
CN106375869B (en) * 2016-08-30 2019-06-14 北京奇艺世纪科技有限公司 A kind of audio and video playing method and device based on HTML5 player
CN109327530B (en) * 2018-10-31 2023-05-23 网易(杭州)网络有限公司 Information processing method, device, electronic equipment and storage medium

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7694008B2 (en) * 2005-05-04 2010-04-06 Venturi Wireless Method and apparatus for increasing performance of HTTP over long-latency links
US7659905B2 (en) * 2006-02-22 2010-02-09 Ebay Inc. Method and system to pre-fetch data in a network
CN101325602A (en) * 2008-07-30 2008-12-17 广州市动景计算机科技有限公司 Method and system for pre-reading web page by micro-browser intelligently
CN102122283A (en) * 2010-01-07 2011-07-13 宏碁股份有限公司 Method for turning web pages and electronic device
KR20120035041A (en) * 2010-10-04 2012-04-13 삼성전자주식회사 Method and apparatus for registering address of hyperlink in bookmark
CN102123168B (en) * 2011-01-14 2012-07-18 广州市动景计算机科技有限公司 Web page pre-reading and integration method and system based on relay server
CN102222086B (en) * 2011-05-18 2014-11-26 广州市动景计算机科技有限公司 Webpage viewing method and webpage viewing device based on mobile terminal as well as mobile terminal
CN102446222B (en) * 2011-12-22 2014-12-10 华为技术有限公司 Method, device and system of webpage content preloading
CN102591943B (en) * 2011-12-27 2017-02-08 厦门雅迅网络股份有限公司 Page data processing method for mobile terminal
CN103020156B (en) * 2012-11-23 2016-02-03 小米科技有限责任公司 A kind of disposal route for webpage, device and equipment
CN103390050B (en) * 2013-07-24 2016-08-17 小米科技有限责任公司 The method of Web Pre-Fetching, device and terminal unit

Also Published As

Publication number Publication date
CN104731817B (en) 2019-11-22
WO2015096660A1 (en) 2015-07-02
CN104731817A (en) 2015-06-24
TWI519980B (en) 2016-02-01

Similar Documents

Publication Publication Date Title
US10091628B2 (en) Message based application state and card sharing methods for user devices
US20190251143A1 (en) Web page rendering method and related device
US8521892B2 (en) Method and apparatus for controlling web page advertisement through incentives and restrictions
US9916390B2 (en) Managing web browser cache for offline browsing
US20160283460A1 (en) Dynamic native content insertion
US20130019159A1 (en) Mobile web browser for pre-loading web pages
US10346523B1 (en) Content synchronization across devices
US20150074561A1 (en) Customizable themes for browsers and web content
US8990190B2 (en) Contextual help article provider
US20130110906A1 (en) Browser cache assist for accessing web-based content
TWI519980B (en) Method and device for displaying web page and computer-readable storage medium
US9619444B2 (en) System and method for web content presentation management
US11137868B1 (en) Providing content presentation elements in conjunction with a media content item
US20150207854A1 (en) External application request
US9940396B1 (en) Mining potential user actions from a web page
JP2013508807A (en) Method and apparatus for generating an internet navigation page
RU2595524C2 (en) Device and method for processing content of web resource in browser
US20170192941A1 (en) Computer-Automated Generation of Application Deep Links
US20150227276A1 (en) Method and system for providing an interactive user guide on a webpage
US20130151937A1 (en) Selective image loading in mobile browsers
CN112417243A (en) Search results for native applications
US20130268832A1 (en) Method and system for creating digital bookmarks
CN110968314A (en) Page generation method and device
US11265260B2 (en) Generation and management of an array of digital resources
US10095791B2 (en) Information search method and apparatus