thirteenth
thirteenth
  • 发布:2017-11-07 13:54
  • 更新:2017-11-07 15:36
  • 阅读:1171

app内外通信

分类:HTML5+

加载一个http://页面时如何和app本身通信。
加载的http://页面是否可以直接在页面里面使用5+的api?

2017-11-07 13:54 负责人:无 分享
已邀请:
五叶神

五叶神 - 世界上没有免费的午餐,也不要有一颗贪婪的心

可以的,一般数据传递是通过 plus.storage去处理

网页内:

document.addEventListener( "plusready", function(){  
    $.cookie('webuserCookie',plus.storage.getItem('appuserkey'));  
    $('.start-end').hide();  
});

只要是在APP内打开的网页,就能使用全部的h5+方法

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