最近在做小程序,其中遇到的一些问题在此进行记录

选择图片一直报错
错误如下:

检查代码发现是因为没有访问到全局数据

声明taht变量,赋值为this,调用的时候采用that.setData,var that = this
最近在做小程序,其中遇到的一些问题在此进行记录
选择图片一直报错
错误如下:
声明taht变量,赋值为this,调用的时候采用that.setData,var that = this
本文标题:小程序错误记录:TypeError: Cannot read p
本文链接:https://www.haomeiwen.com/subject/biffdktx.html
网友评论