Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/76.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
jquery mobile loader未在chrome、emulator和android mobile中显示_Android_Jquery_Jquery Mobile - Fatal编程技术网

jquery mobile loader未在chrome、emulator和android mobile中显示

jquery mobile loader未在chrome、emulator和android mobile中显示,android,jquery,jquery-mobile,Android,Jquery,Jquery Mobile,我正在使用phonegap创建jquery移动应用程序,当我发出ajax请求时,我会显示ajax加载微调器,它在Firefox中运行良好,但没有chrome、emulator和真正的android移动设备 下面是我正在使用的代码 $(document).on("pageinit","#agenda2",function(){ $.mobile.loading('show', { text: 'Please wait', textVisible: true, theme:

我正在使用phonegap创建jquery移动应用程序,当我发出ajax请求时,我会显示ajax加载微调器,它在Firefox中运行良好,但没有chrome、emulator和真正的android移动设备

下面是我正在使用的代码

$(document).on("pageinit","#agenda2",function(){
$.mobile.loading('show', {
    text: 'Please wait',
    textVisible: true,
    theme: 'a',
    html: ""
});
// Code for ajax request goes here 
});

尝试
$('.ui loader').show()如果未显示,请使用class
ui-loader
检查DOM中的div。您使用的是什么版本?这也不起作用,我试着监控它将引发firebug,并注意到它在ajax请求完成时开始旋转,我甚至试着在用户单击元素时立即显示微调器,但在请求完成时仍然显示。也许访问控制允许源问题?因为它发生在chrome上?我只在localhost上工作,我访问的php在同一个目录中,它返回结果,所以我认为这不是问题所在。