[英]Does Windows 8 Phone support JQuery ajax call when using PhoneGap?
I'm using the PhoneGap platform. 我正在使用PhoneGap平台。 Does Windows Phone 8 support a JQuery Mobile ajax call?
Windows Phone 8是否支持JQuery Mobile ajax调用? My code:
我的代码:
$.ajax({
type: 'POST',
url: 'some URL',
data: senddata,
dataType: 'text'
});
This call works on iPhone and Android device but not on Windows 8 Phone. 此呼叫在iPhone和Android设备上有效,但在Windows 8 Phone上无效。 Is anyone using ajax to post to a URL on Windows 8 Phone via using JQuery and PhoneGap?
是否有人使用Ajax通过JQuery和PhoneGap在Windows 8 Phone上发布到URL?
Please try the options below: 请尝试以下选项:
$(document).on( "mobileinit", function() {
$.support.cors = true;
$.mobile.allowCrossDomainPages = true;
$.mobile.phonegapNavigationEnabled = true;
});
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.