天天看點

小程式setData方法回調

小程式setData方法的回調

格式:

this.setData({
	//...
	},() => {
	this.setData({
	//...
	})
})
           

其中=>屬于ES6标準,表示箭頭函數,左側括号放置參數