如何在函数内调用this.setData
function geyan(info) {
| this.setData({ note: info })
}
调用时提示:
Cannot read property ‘setData’ of undefined
this的指向是不是不对?怎么改正?
function geyan(info) {
| this.setData({ note: info })
}
调用时提示:
Cannot read property ‘setData’ of undefined
this的指向是不是不对?怎么改正?