登录和分享
作者:本站编辑 发布时间:2015-11-25 来源:本站原创
点击数:
// 登录和分享
function message(type){
if(arguments.length==1)//arguments.length 表示实参长度
// cordova.exec(null, null, "Message", type, ['ddd','bbb']);
window.top.location.href="http://lvyou/"+type;
else
// cordova.exec(null, null, "Message", arguments[2], [arguments[0], arguments[1]]);
window.top.location.href="http://lvyou/"+arguments[2]+"!-!"+arguments[0]+"!-!"+arguments[1];
}
建议jqmobi跳转中不要用 window.top.location.href
jqmobi中js跳转可以使用
$.ui.loadContent("#divid")
$.ui.loadContent(url)