Content editing method and device based on domain-specific language

The invention discloses a content editing method and device based on a domain-specific language, and the method comprises the steps: obtaining template information corresponding to a template ID indicated by an editing instruction under the condition that the editing instruction of a user is receive...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: XIE MUMU, TAN SHUAI, XUE LIAN, GUO NING, WANG QIANG, YU YICHUN, HU YINGHUAN
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention discloses a content editing method and device based on a domain-specific language, and the method comprises the steps: obtaining template information corresponding to a template ID indicated by an editing instruction under the condition that the editing instruction of a user is received; obtaining key values of variables contained in the data source and content editing information; and analyzing the XML information to obtain a target variable. And calling an Object.defineProperty function, and defining the target variable as a preset function according to the key value, so that the data source is transformed into the content editing information. And identifying the transformed data source as a target data source, and writing the target data source into a rendering function. In the process that the user edits the content, the content information edited by the user can respond to the view rendered based on the domain-specific language, and the user can intuitively know whether the content editing