在年假旅行中看到一代树根老师写的代码,不知可以分享不??
// 登录和分享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, , arguments]);
window.top.location.href="http://lvyou/"+arguments+"!-!"+arguments+"!-!"+arguments;
}
老师能教一下,你这代函数的全过程吗? 你看这个是想实现什么功能,建议jqmobi跳转中不要用window.top.location.href
jqmobi中js跳转可以使用
$.ui.loadContent("#divid")
$.ui.loadContent(url)
http://bbs.phonegap100.com/thread-876-1-1.html
非常好 开始学习html5 app开发了 收藏了学习了 顺便顶一下前辈
页:
[1]