Method and device for displaying converted web pages
A web page and display method technology, applied in network data retrieval, network data browsing optimization, other database retrieval, etc., can solve problems such as poor effect, slow opening speed, and poor user experience.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0056]Embodiment 1 of the present invention provides a display method after conversion of a web page. The display method is applicable to terminal devices of various operating systems, including android system, ios system, pc system, and Windows Phone operating system. Applicable to specific applications, such as WeChat applets. Such as figure 1 As shown, the display method in this embodiment includes:
[0057] In step 201, an instruction to open a webpage link is obtained, and page node data is pulled according to the content of the webpage.
[0058] In the embodiment of the present invention, since there is no need to open the webview, there is no webview initialization process, no page code loading process, and the node data can be pulled when the user clicks on the web page link.
[0059] Wherein, the webpage content adopted in each embodiment of the present invention is cited as an example, and its content includes:
[0060] Introduction: U.S. air strikes on Syria, th...
Embodiment 2
[0073] The embodiment of the present invention is the refinement of how to complete the implementation method of node data pulling in embodiment 1, and specifically uses a description language (for example: JSON language) that is applicable to each terminal system, and each terminal system includes: Android system, IOS system, WINCE system, WINPhone and so on. In the embodiment of the present invention, corresponding to the step 201 in the embodiment 1, the page node data is pulled according to the content of the webpage, and the specific implementation is as follows:
[0074] Convert one or more objects recorded in the web page content into node data in JSON language;
[0075] Wherein, the object types recorded in the webpage content include: one or more of text type, picture type, video type and Flash type;
[0076] Wherein, the attribute of each node data converted in JSON language is an object type in JSON language.
[0077] Taking the webpage code of the WeChat Mini Pro...
Embodiment 3
[0090] The embodiment of the present invention can be used in the method described in Embodiment 1, and provides a detailed implementation method for obtaining the layout file according to the node data type in step 202, such as figure 2 shown, including:
[0091] In step 301, an execution program for generating a layout file is loaded.
[0092] The execution program for generating the layout file is proposed by the embodiment of the present invention. Its realization principle is to use the for loop to identify the data types of multiple node data generated in step 201, and to identify the data types according to the data stored in the layout library. The layout data corresponding to each data type is combined with the corresponding node data to generate a layout file.
[0093] Taking the WeChat applet as an example, the embodiment of the present invention provides a set of execution program codes for generating layout files, as follows:
[0094]
[0095] The above exec...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


