摘要 |
<p>Provided are a page layout method and system. The method comprises: when a page is parsed, if a layout tree of the page exists in a local cache library and a cache label in the page is the same as a cache label stored in the local cache library, copying the layout tree of the page from the local cache library; according to a cache label of a page node element, finding out an update node of the page node element and generating a layout tree node corresponding to the update node; replacing the original layout tree node of the update node with the generated layout tree node corresponding to the update node; and in the layout tree, conducting re-layout on the generated layout tree node corresponding to the update node, a parent node of the update node and an ancestor node of the update node. The present invention can reduce nodes of a reconstructed tree, reduce the number of layout times and increase the speed of page display.</p> |