小程序给界面赋值报错:this.setData is not a function

this不能直接在回调里用,要在外边重新定义一个新值,直接看图
这里写图片描述

猜你喜欢

转载自blog.csdn.net/icandyss/article/details/79045625