当我尝试使用$ .mobile.showPageLoadingMsg时,它显示我没有出现功能错误
我正在加载我的JS脚本,如下所示
<script type="text/javascript" src="/js/jquery-1.7.2.min.js" ></script>
<script type="text/javascript" src="/js/jquery.tmpl.1.0.0pre.min.js"></script>
<script type="text/javascript" src="/js/jquery-ui-1.8.19.custom.min.js"></script>
<script type="text/javascript">
/*<![CDATA[*/
$(document).bind("mobileinit", function() {
$.mobile.ajaxEnabled = false;
$.mobile.ajaxLinksEnabled = false;
$.mobile.selectmenu.prototype.options.nativeMenu = true;
$.mobile.defaultPageTransition = "none";
$.mobile.defaultDialogTransition = "none";
$.mobile.minScrollBack = 250;
$.mobile.loadingMessageTheme = "f";
});
/*]]>*/
</script>
<script type="text/javascript" src="/js/jquery.mobile-1.4.2.min.js"></script>
<script type="text/javascript" src="/js/jquery.mobile.easydialog.js"></script>
<script type="text/javascript" src="/js/jquery.mobile.autocomplete.custom.js"></script>
<script type="text/javascript" src="/js/jquery.ui.stars.min.3.0.1.js"></script>
<script type="text/javascript" src="/js/jquery.form.2.67.js"></script>
<script type="text/javascript" src="/js/jquery.colorbox-1.3.16.js"></script>
<script type="text/javascript" src="/js/jquery.imagesloaded.min.js"></script>
<script type="text/javascript" src="/js/jquery.cycle.all.2.9999.5.js"></script>
<script type="text/javascript" src="/js/common.js"></script>
我该如何解决这个问题。
答案 0 :(得分:2)
试试这个
$.mobile.loading('show', {
theme: "a",
text: msg,
textonly: true,
textVisible: true
});