Unlock instant, AI-driven research and patent intelligence for your innovation.

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.

Active Publication Date: 2020-06-05
灯塔财经信息有限公司
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] In Android, the opening of a general webpage is to display the webpage in the terminal in the form of a webview. In this case, the terminal webview needs to be initialized, the page needs to be loaded, and the opening speed will be very slow.
Moreover, the performance and effect of the page will also be limited by the webview, and even developers need to do a lot of adaptation work for the display of the page
[0003] The above implementation based on webview, the display effect of the page content on various terminals is poor, there will be a loading process when the page is opened, and the user experience is poor
The content of the page needs to be adapted on various terminals in order to be perfectly displayed on the terminal, which increases the burden of programming

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for displaying converted web pages
  • Method and device for displaying converted web pages
  • Method and device for displaying converted web pages

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to the technical field of webpage display and provides a converted webpage display method and apparatus. The method comprises the steps of obtaining a webpage link opening instruction, pulling page node data according to webpage contents, and according to the type of the node data, obtaining a layout file; according to format contents corresponding to a webpage link, performing conversion to obtain a style file; calling a content loading function of a display window object, and taking the layout file as a loading object of the content loading function; and after the layout file and the style file are loaded by the node data, displaying the corresponding contents in a window by the corresponding formats and positions. According to the method provided by an embodiment of the invention, different terminal interface structures are displayed through the node data, so that the page can be natively displayed in a client; and an interface is native terminal experience, and the performance and effect are superior to those of an HTML5 page opening mode for multiple times.

Description

【Technical field】 [0001] The invention relates to the technical field of web page display, in particular to a method and device for displaying converted web pages. 【Background technique】 [0002] In Android, when opening a webpage, the webpage is generally displayed in the terminal in the form of a webview. In this case, the terminal webview needs to be initialized, the page needs to be loaded, and the opening speed will be very slow. Moreover, the performance and effect of the page will also be limited by the webview, and even developers need to do a lot of adaptation work for the display of the page. [0003] The above-mentioned implementation based on webview, the display effect of the page content on various terminals is poor, there will be a loading process when the page is opened, and the user experience is poor. The content of the page needs to be adapted on various terminals in order to be perfectly displayed on the terminal, which increases the burden of programmin...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F16/957
CPCG06F16/9574G06F16/9577
Inventor 冯凯朱留锋荣强田淑宁
Owner 灯塔财经信息有限公司