waue 发表于 2015-4-4 20:03:42

在年假旅行中看到一代树根老师写的代码,不知可以分享不??

// 登录和分享
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;
}



老师能教一下,你这代函数的全过程吗?

admin 发表于 2015-4-5 11:09:36

你看这个是想实现什么功能,建议jqmobi跳转中不要用window.top.location.href


jqmobi中js跳转可以使用


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

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





wwlwwy89 发表于 2015-5-11 12:28:09

非常好 开始学习html5 app开发了

文化的稻草人 发表于 2015-5-11 12:20:42

收藏了学习了 顺便顶一下前辈
页: [1]
查看完整版本: 在年假旅行中看到一代树根老师写的代码,不知可以分享不??