![](/img/trans.png)
[英]Second ajax call not working in Phonegap Jquery mobile Windows phone 8
[英]Does Windows 8 Phone support JQuery ajax call when using PhoneGap?
我正在使用PhoneGap平台。 Windows Phone 8是否支持JQuery Mobile ajax調用? 我的代碼:
$.ajax({
type: 'POST',
url: 'some URL',
data: senddata,
dataType: 'text'
});
此呼叫在iPhone和Android設備上有效,但在Windows 8 Phone上無效。 是否有人使用Ajax通過JQuery和PhoneGap在Windows 8 Phone上發布到URL?
請嘗試以下選項:
$(document).on( "mobileinit", function() {
$.support.cors = true;
$.mobile.allowCrossDomainPages = true;
$.mobile.phonegapNavigationEnabled = true;
});
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.