It is not enough for a service only to display the interface, but also to interact with the user: respond to the user’s click, obtain the user’s location and so on. In the small program, we write JS script files to deal with the user’s operations. {{MSG}} click when I click the button, we want to display MSG as “Hello World” on the interface, so we declare a property on the button: ClickMe ({clickMe: function() {this.setdata ({MSG: “Hello World”})}}) Responding to user actions is as simple as that. More detailed events can be found in the documentation WXML – Events. In addition, you can also call the rich API provided by the small program in JS, using these API can be very convenient to adjust the capabilities provided by wechat, such as access to user information, local storage, wechat payment, etc.. In the previous QuickStart example, wx.getUserInfo is called in pages/index/index.js to obtain wechat user’s profile picture and nickname, and setData is used to display the obtained information on the interface. More apis can be found in the documentation applets API. Micro channel small program development artifact “micro channel small program automatic slice generation layout software”, can quickly automatically generate small program front layout and code, there are free tutorials and technical support. The functions are as follows: 1. Slicing function: This part of the original handwritten work can be cut by slicing software. After cutting, it can automatically generate WXML, WCSS, JS files. 2, text recognition function: the text on the effect drawing can be recognized by automatic text recognition, improve the speed of input, reduce the workload. 3, archiving function: the design of the slice file can be archived, so that the next time needed to be taken to re-edit. As long as there is a slice file in the program can also show and edit. Please feel free to contact us if you have any questions! Q Q: 2381547632 official website: www.ymznkf.com/index.aspx?… Software download address: www.ymznkf.com/new_view_55…