网上是:this.setData is not a function,解决方法是将var that = this;改变为全局即可,但没有作用。 后来仔细查看,没有使用大写,将setdata中的d改成大写的就可以了