@jumpchess1 写道:
AAA.js
let bbb = new BBB(); bbb.setCallback(this.response); ... response: function(message) { cc.log(message); },
BBB.js
properties: { response : null, }, setCallback: function (re){ this.response = re; } ... this.response(message);
最后报错 Connect.js:63 Uncaught TypeError: this.response is not a function
at XMLHttpRequest.xhr.onreadystatechange
帖子: 6
参与者: 1