if(_openw) {
_openw.showded = true;
_openw.show(a, null, function() {
_openw = null; //避免快速点击打开多个页面
}
看了html5+ 源码 _openw.showded = true; 这是什么意思,找遍了这个网络不知道什么意思!
if(_openw) {
_openw.showded = true;
_openw.show(a, null, function() {
_openw = null; //避免快速点击打开多个页面
}
看了html5+ 源码 _openw.showded = true; 这是什么意思,找遍了这个网络不知道什么意思!
王者地带 - 5+混合APP开发教程网 | http://www.html5-app.com | 咨询QQ: 2564034335
估计是官方随便定义的,你不需要按它的来,
它是在 _openw 的数组里添加多一个 showded 的属性,从英文单词的意思,它应该是表示,该页面已经创建过了,
_openw.showded = true;
看到例子是用于,当预加载的页面隐藏时,就把_openw 等于null ,应该是为了防止二次创建
_openw.addEventListener('hide',function()
{
_openw&& (_openw.showded=true);
_openw=null;
},false);
老哥教教我 (作者)
html5+ 演示app 首页
2018-03-18 12:15