很奇怪,在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');
});
});
delete (作者)
解决了,谢谢
2016-03-02 16:34