this.comp() is not a function
问题现象: Model.prototype.userDataCustomRefresh = function(event){ justep.Baas.sendRequest({ "url" : "/justep/takeout", "action" : "actionName", "async" : false, "params" : {}, "success" : function(data) { this.comp("data").loadData(data); } }); }; 这个时候会报错 this.comp() is not a function; 问题原因 this 作用域的范围 回调函数里取不到this ; [...]