遇到错误 TypeError: Cannot read property 'handleEvent' of undefined
环境:安装最新版NodeJS后,通过npm命令安装的phone gap和cordova。
操作步骤:
1、使用phonegap create命令创建app
2、使用phonegap run android命令创建Android Studio工程
3、在onDeviceReady函数中,添加 menubutton事件接收函数。
document.addEventListener('menubutton', this.onMenuButton, false);
现象:
发生TypeError: Cannot read property 'handleEvent' of undefined错误。
哪位大侠知道是什么原因吗?
你看看handleEvent 在哪里写的,从这个handleEvent 入手
页:
[1]