JavaScript中,回调函数中,经常发现this指向变成undefined的情况。解决方案一:const that = thisthis.setData({})编程that。setData
方案二:使用箭头函数