jquery mobile loader未在chrome、emulator和android mobile中显示
我正在使用phonegap创建jquery移动应用程序,当我发出ajax请求时,我会显示ajax加载微调器,它在Firefox中运行良好,但没有chrome、emulator和真正的android移动设备 下面是我正在使用的代码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:
$(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()代码>如果未显示,请使用classui-loader
检查DOM中的div。您使用的是什么版本?这也不起作用,我试着监控它将引发firebug,并注意到它在ajax请求完成时开始旋转,我甚至试着在用户单击元素时立即显示微调器,但在请求完成时仍然显示。也许访问控制允许源问题?因为它发生在chrome上?我只在localhost上工作,我访问的php在同一个目录中,它返回结果,所以我认为这不是问题所在。