WeChat applet development: study notes [2] - WXML template
quick start
introduce
The full name of WXML is WeiXin Markup Language, which is a set of markup language designed by the applet framework . Combined with the basic components and event system of the applet, the structure of the page can be constructed.
Open the editor of the development tool, find the app.json file in the root directory, double-click to open it, and add a new line "pages/wxml/index" to "pages/index/index" to save the file. After the simulator is refreshed, the reader can find the pages/wxml/index.wxml file in the editor. The learning of this summary is completed by modifying this file.
grammatical form
The suffix of WXML file is .wxml . Open pages/wxml/index.wxml file. Readers with HTML development experience should be familiar with the way of writing this code. Simple WXML statements are very similar to HTML in syntax.
data binding
UI rendering will vary depending on the current moment data