jquery mobile 加载器 显示和隐藏

jquery mobile 加载器 显示和隐藏

显示加载器
function showLoader() {
 //显示加载器.for jQuery Mobile 1.2.0 
$.mobile.loading('show', { 
    text: '加载中...', //加载器中显示的文字 
       textVisible: true, //是否显示文字 
       theme: 'a',//加载器主题样式a-e 
   textonly: false, //是否只显示文字 
        html: "" //要显示的html内容,如图片等 
        }); 
} 
隐藏加载器
//隐藏加载器.for jQuery Mobile 1.2.0 
function hideLoader() { 
        //隐藏加载器 
   $.mobile.loading('hide');
 }

猜你喜欢

转载自blog.csdn.net/SunmmerSoftware/article/details/53197411