簡體   English   中英

未捕獲的ReferenceError:函數未定義

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM