在Android版本为4.3的三星手机上测试,onDeviceReady()方法不执行,在别的手机上都可以,比如版本5.1的小米手机,请问有什么解决办法么???,急!!!
function onDeviceReady() {
alert('进入方法') l
ocalStorage.setItem('test', "test!!!");
alert(localStorage.getItem('test'))
}
document.addEventListener('deviceready', this.onDeviceReady.bind(this), false);
function onDeviceReady() {
alert('进入方法') l
ocalStorage.setItem('test', "test!!!");
alert(localStorage.getItem('test'))
}
document.addEventListener('deviceready', this.onDeviceReady.bind(this), false);