加载一个http://页面时如何和app本身通信。
加载的http://页面是否可以直接在页面里面使用5+的api?
thirteenth
- 发布:2017-11-07 13:54
- 更新:2017-11-07 15:36
- 阅读:1171
五叶神 - 世界上没有免费的午餐,也不要有一颗贪婪的心
可以的,一般数据传递是通过 plus.storage去处理
网页内:
document.addEventListener( "plusready", function(){
$.cookie('webuserCookie',plus.storage.getItem('appuserkey'));
$('.start-end').hide();
});
只要是在APP内打开的网页,就能使用全部的h5+方法
thirteenth (作者)
谢谢
2017-11-07 15:38