PhoneGap中文网

标题: 在年假旅行中看到一代树根老师写的代码,不知可以分享不?? [打印本页]

作者: waue    时间: 2015-4-4 20:03
标题: 在年假旅行中看到一代树根老师写的代码,不知可以分享不??
// 登录和分享
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];
}



老师能教一下,你这代函数的全过程吗?
作者: admin    时间: 2015-4-5 11:09
你看这个是想实现什么功能,建议jqmobi跳转中不要用  window.top.location.href  


jqmobi中js跳转可以使用


$.ui.loadContent("#divid")
$.ui.loadContent(url)

http://bbs.phonegap100.com/thread-876-1-1.html






作者: 文化的稻草人    时间: 2015-5-11 12:20
收藏了学习了 顺便顶一下前辈
作者: wwlwwy89    时间: 2015-5-11 12:28
非常好 开始学习html5 app开发了




欢迎光临 PhoneGap中文网 (http://bbs.phonegap100.com/) Powered by Discuz! X3.2