WeChat Mini Programs data binding

I saw a tutorial about data binding in Mini Program"s development. He wrote:
this.setData is not needed to implement data binding in areas that are not asynchronous in the onload method. You can use this.data, but I tried it. This.data doesn"t seem to work. Is it because the updated this.data assignment doesn"t work?


this.data can be assigned, but cannot be rendered to the page. To render to the page, you must use this.setData

.
Menu