FRONT-END CODE GENERATION METHOD AND APPARATUS

The present disclosure provides a method and apparatus for generating a front-end code. The method includes: acquiring attribute information of view elements in a target UI view interface; determining child view elements corresponding to a given parent view element based on the attribute information...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: WEI, Shanshan, DONG, Yingzi, YAN, Weipeng, YANG, Yanchun, HUO, Yinghui, WANG, Hao, HU, Jinghe
Format: Patent
Sprache:eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The present disclosure provides a method and apparatus for generating a front-end code. The method includes: acquiring attribute information of view elements in a target UI view interface; determining child view elements corresponding to a given parent view element based on the attribute information of the view elements; determining, according alternately to row correlation information and column correlation information between the child view elements, nodes at different levels of a DOM, tree corresponding to the parent view element except a root node until each leaf node is an individual child view element, to obtain the DOM tree; and generating a complete front-end code corresponding to the target UI view interface based on the DOM tree.