回调函数中的this指向
来源:9-9 使用Storage保存最新期刊号

weibo_灿如夏花a静如秋叶_0
2019-05-10
在获取最新一期数据的success成功回调中,调用this._setLatestIndex(res.index);报错this._setLatestIndex is not a function
写回答
1回答
-
TheMoou
2019-05-15
你在回调函数中,用这个this对象 不行 var seft = this 用 seft._setLastesIdex
建议看一下 this相关的基础
122021-09-26
相似问题