0
我正在做一個jQuery Mobile/Rails應用程序,並且我爲它製作了app-capable
。事情是,iOS的移動應用程序不支持外部鏈接,所有鏈接以data-ajax="false"
爲例。iOS應用程序外部鏈接技巧在jQuery更新後無法使用
於是我就用這個小把戲JS
if (("standalone" in window.navigator) && window.navigator.standalone) {
$("a[data-ajax*=false]").live('click', function(){
window.location.href=this.href;
return false;
});
}
這是工作很好,因爲我同時更新jQuery和jQuery Mobile的......那以來,沒有追加當我點擊鏈接...
任何想法 ?