jquery mobile显示busy/loading indicator

http://stackoverflow.com/questions/7208609/show-page-loading-spinner-on-ajax-call-in-jquery-mobile


在这上面可以体验
http://demos.jquerymobile.com/http://demos.jquerymobile.com/1.2.1/docs/pages/loader.html

cyper实战:

function showBusy(text){
    var msg = text || 'loading';

    $.mobile.loading( 'show', {
        text: msg,
        textVisible: true,
        //theme: 'a',
        html: ""
    });
}

function hideBusy(){
    $.mobile.loading('hide');
}

$(document).ajaxStart(function() {
    showBusy();
});

$(document).ajaxStop(function() {
    hideBusy();
});



你可能感兴趣的:(jquery mobile显示busy/loading indicator)