[英]Uncaught ReferenceError: function is not defined
我不知道為什么它給了我Uncaught ReferenceError:predictMove沒有定義。 我想將predictMove()用作輔助函數。 你們能幫我嗎?
var Crab = extend(Actor, {
type : "Crab",
isStuck : false,
predictMove : function(auxx, auxy) {
............
},
animation : function() {
......... I call the predictMove() function somewhere in this piece of code......
})
提供undefined error
的函數調用:
this.functionName(...); // Important: Add the **this**
僅供參考 :您遇到了范圍界定問題。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.