Android 加载微调器时未显示加载复选框
我试图在Android原生应用程序上使用jquery mobile 1.3.2中的以下代码在加载复选框时显示加载微调器,但它不起作用,有人能帮我解决什么问题以及如何使其起作用吗 这是我的密码:Android 加载微调器时未显示加载复选框,android,jquery-mobile,checkbox,spinner,Android,Jquery Mobile,Checkbox,Spinner,我试图在Android原生应用程序上使用jquery mobile 1.3.2中的以下代码在加载复选框时显示加载微调器,但它不起作用,有人能帮我解决什么问题以及如何使其起作用吗 这是我的密码: function onChangeCarrera(idCarrera,idEvento){ $.mobile.loading('show', { text: 'Cargando Corredores', textVisible: true, the
function onChangeCarrera(idCarrera,idEvento){
$.mobile.loading('show', {
text: 'Cargando Corredores',
textVisible: true,
theme: 'a',
html: ""});
cargaCorredores(idCarrera,idEvento);
resetMontoTotal();
$.mobile.loading('hide');
}
function cargaCorredores(idCarrera,idEvento){
var dom = jsel(json);
var carrera = dom.select('//Eventos/*[@id='+idEvento+']/carreras/*[@nroCarrera='+idCarrera+']');
//Muestra Label
$("#lblCorredores").text("Selección de corredores");
var html;
for (var x=1; x<=TipoApuesta.patas; x++){
html='<fieldset id="carrera"+x+"_fieldset" data-type="horizontal" data-role="controlgroup"><legend>'+eval("TipoApuesta.p"+x+"Nombre")+'</legend>';
$.each(carrera.corredores, function(i, corredor) {
html+='<input type="checkbox" onclick="resetMontoTotal();" value="'+corredor.nroCorredor+'" name="checkbox_'+idCarrera+'_'+idEvento+'_'+corredor.nroCorredor+'" id="checkbox_'+idCarrera+'_'+idEvento+'_'+corredor.nroCorredor+'" class="corredores'+x+'" /><label for="checkbox_'+idCarrera+'_'+idEvento+'_'+corredor.nroCorredor+'">'+corredor.nroCorredor+'</label>';
});
$("#carreras"+x).html(html+'</fieldset');
$("#carreras"+x).trigger("create");
}
if (TipoApuesta.patas<4){
for (var j=4; j>TipoApuesta.patas; j--){
$("#carreras"+j).html('');
$("#carreras"+j).trigger("create");
}
}
}
功能更改Carrera(idCarrera,idEvento){
$.mobile.loading('show'{
文字:“Cargando Corredores”,
textVisible:对,
主题:"a",,
html:“}”;
cargaCorredores(idCarrera,idEvento);
resetMontotal();
$.mobile.load('hide');
}
功能汽车配件(idCarrera,idEvento){
var dom=jsel(json);
var carrera=dom.select('//Eventos/*[@id='+idEvento+']/carreras/*[@nroCarrera='+idCarrera+']);
//穆埃斯特拉标签
$(“lblCorredores”)。文本(“Selección de corredores”);
var-html;
对于(var x=1;x我在某个地方读到了关于需要使用区间变量的内容。我遇到了同样的问题,这解决了它,尽管这对我来说有点“不方便”
我必须在我的每个应用程序页面上使用不同的变量名称作为间隔。如果将其移到函数之外,它会显示吗?这只发生在android中?发生在android和pc浏览器中。您的意思是将$.mobile.loading('show')移到函数之外吗?
var interval = setInterval(function () {
$.mobile.loading('show', {
text: 'Resuming...',
textVisible: true,
theme: 'a',
html: ""
});
clearInterval(interval);
}, 1);