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

Method and device for displaying label nesting level of web page

A web page and label technology, applied in the display field of label nesting level, can solve the problems of low work efficiency and accuracy, error-prone, slow manual operation, etc., to improve efficiency and accuracy, fast and intuitive display Effect

Active Publication Date: 2020-03-03
GUANGZHOU SHIYUAN ELECTRONICS CO LTD +1
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the speed of manual operation is slow and error-prone, and the work efficiency and accuracy are relatively low

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 label nesting level of web page
  • Method and device for displaying label nesting level of web page
  • Method and device for displaying label nesting level of web page

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0060] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0061] see figure 1 , is a schematic flowchart of an embodiment of the method for displaying the label nesting levels of the web page provided by the present invention. The method for displaying the label nesting level of the web page provided by this embodiment at least includes the following steps:

[0062] S11. Read the DOM object tree of the currently opened webpage; the DOM object tree includes all sublabel nodes of the body label node of the webpage, and des...

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 discloses a method and device for displaying label nesting hierarchies of webpages. The method comprises the following steps of: reading a DOM object tree of a currently opened webpage, wherein the DOM object tree comprises all the sub-label nodes of a body node of the webpage, and a descendant node of each sub-label node; carrying out preorder traversal on the DOM object tree to obtain attribute information of traversed label nodes; generating hierarchy numerical values matched with hierarchies where the traversed label nodes are located; and associating the attribute information with the hierarchy numerical values to generate a label information set, generating a thermodynamic diagram of a label nesting hierarchy of the webpage according to the label information set so as to display the label nesting hierarchy of the webpage. By adoption of the method and device, the label nesting hierarchies of webpages can be known rapidly and intuitively.

Description

technical field [0001] The invention relates to the field of network data processing, in particular to a method and device for displaying label nesting levels of web pages. Background technique [0002] When building web pages, front-end technicians usually nest multiple HTML tags to achieve multiple functions. After the webpage is built, when it is necessary to know the label nesting level of the webpage, it is mostly to view the source code of the webpage in the webpage editor or the developer tool of the browser, and then manually calculate the number of layers. However, manual operations are slow and prone to errors, resulting in low work efficiency and accuracy. Contents of the invention [0003] The technical problem to be solved by the present invention is to provide a method and device for displaying the label nesting level of a web page, which can quickly and intuitively understand the label nesting level of a web page. [0004] In order to solve the above techn...

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/958G06F16/901
CPCG06F16/9027G06F16/986
Inventor 潘潇
Owner GUANGZHOU SHIYUAN ELECTRONICS CO LTD