PandaL33
PandaL33
  • 发布:2016-06-06 17:12
  • 更新:2016-06-06 17:12
  • 阅读:3271

Uncaught TypeError: Cannot read property 'currentWebview' of undefined

分类:MUI
mui

提示错误:
Uncaught TypeError: Cannot read property 'getLength' of undefined at js/pmain/storage.js:10
Uncaught TypeError: Cannot read property 'currentWebview' of undefined at js/mui.min.js:6
代码:
mui.init();
var txtRes=document.getElementById("pdrTxtTestRes");
var stor=null;
var storPlus=null;

mui.plusReady(function(){
stor=window.localStorage;
storPlus=plus.storage;
txtRes.value+="LocalStorage中保存的Key总数为:"+stor.length+" \n";
txtRes.value+="PlusStorage中保存的Key总数为:"+storPlus.getLength().toString()+" \n";
});

2016-06-06 17:12 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复