如何在jquery mobile中删除加载图像 [英] How to remove loading image in jquery mobile
本文介绍了如何在jquery mobile中删除加载图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好
你能告诉我如何在jquery mobile中删除加载图像。我在页面加载时加载这个图像感到很沮丧。
Hello
can you please tell me how to remove loading image in jquery mobile.i am frustrated from this image loading while page loading.
<!DOCTYPE html>
<html>
<head>
<title></title>
<link rel="stylesheet" href="css/jquery.mobile-1.3.1.css">
<link rel="stylesheet" href="css/jquery.mobile.theme-1.3.1.css">
<!-- jQuery and jQuery Mobile -->
<script src="js/jquery-1.9.1.min.js"></script>
<script src="js/jquery.mobile-1.3.1.min.js"></script>
<script src="js/jquery.mobile-1.3.1.js"></script>
<!-- Extra Codiqa features -->
</head>
<body>
<!--page one My Cases Screen------------->
<div data-role="page">
<div data-role="header" data-theme="b">
<h1 class="ui-title" id="hdr" style="text-align:left;margin-left: 20px;">My Cases</h1>
<div class="ui-btn-right" id="addbuttons" data-role="controlgroup" data-type="horizontal">
<a href="#" data-role="button" data-inline="true" data-iconpos="notext" data-icon="gear" data-theme="b">Setting</a>
<a href="#newevent1" data-role="button" data-iconpos="notext" data-inline="true" data-icon="plus" data-theme="b" data-rel="dialog">Add</a>
<a href="#newevent1" data-role="button" data-inline="true" data-theme="b" data-rel="dialog">Edit</a>
</div>
</div>
</div>
</body>
<script src="js/jquery.mobile-1.3.1.min.js"></script>
<script type="text/javascript">
$.mobile.showPageLoadingMsg("a", "No spinner", true);
$(document).bind("mobileinit", function () {
$.mobile.loading('hide');
});
</script>
</html>
推荐答案
.mobile.showPageLoadingMsg( a, No spinner, true );
.mobile.showPageLoadingMsg("a", "No spinner", true);
( document )。bind( mobileinit, function (){
(document).bind("mobileinit", function () {
.mobile.loading(' hide');
});
< / script >
< / html >
.mobile.loading('hide'); }); </script> </html>
这篇关于如何在jquery mobile中删除加载图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文