delete
delete
  • 发布:2016-03-02 16:16
  • 更新:2016-03-02 16:27
  • 阅读:1457

请教一下页面传值的问题

分类:MUI

很奇怪,在ios下正常能够传值,在安卓下不行

function openWebview(url, showedCB) {  
    if(typeof(showedCB) == "object" && Object.prototype.toString.call(showedCB).toLowerCase() == "[object object]" && !showedCB.length)  
    {  
        plus.webview.open(url, url, '', 'slide-in-right', 300,function(){  
            mui.fire(plus.webview.getWebviewById(url),'get_id',showedCB);  
        });  
        return ;  
    }  
    plus.webview.open(url, url, '', 'slide-in-right', 300, showedCB);  
}  
mui.plusReady(function() {  
     window.addEventListener('get_id',function(event){  
            alert('s');  
          });  
});
2016-03-02 16:16 负责人:无 分享
已邀请:
DCloud_UNI_FXY

DCloud_UNI_FXY

window.addEventListener('get_id',function(event){
alert('s');
});的代码不需要放到plusReady里边

  • delete (作者)

    解决了,谢谢

    2016-03-02 16:34

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