当前位置: 动力学知识库 > 问答 > 编程问答 >

javascript - Calling function from Google Chrome Console

问题描述:

I'm trying to manually call a function from Google Chrome Console, but its saying that

"Uncaught TypeError: undefined is not a function"

My code is as follows:

var ScatterGame = new Class({

Binds: "mStart mEnd mDrop mEnter mLeave touchHandler instructionStart".split(" "),

gameOver: function() {

clearInterval(this.secondTimer);

}

}),

I'm trying to put in ScatterGame.gameOver(), but its throwing that error. Any help would be greatly appreciated

分享给朋友:
您可能感兴趣的文章:
随机阅读: