【问题标题】:jQuery Mobile - Auto loading text cannot be removedjQuery Mobile - 无法删除自动加载文本
【发布时间】:2014-04-28 07:24:38
【问题描述】:
<script>
$(document).bind("mobileinit", function(){
    $.mobile.loadingMessage = false;
});            
</script>
<script src="http://www.mywebsite.com/scripts/jquery.mobile-1.4.2.min.js" type="text/javascript"></script>

但它仍然出现,我在这里做错了吗?

【问题讨论】:

标签: jquery html css


【解决方案1】:

改变顺序,先加载jQuery

<script src="http://www.mywebsite.com/scripts/jquery.mobile-1.4.2.min.js" type="text/javascript"></script>
<script>
$(document).bind("mobileinit", function(){
    $.mobile.loadingMessage = false;
});            
</script>

【讨论】:

  • 同样的问题,还在加载中
  • Ow.. 发现了问题,我是在自定义脚本之后指定的。谢谢:)
【解决方案2】:
<script src="http://www.mywebsite.com/scripts/jquery.mobile-1.4.2.min.js" type="text/javascript"></script>
<script>
$(document).bind("mobileinit", function(){
    $.mobile.loadingMessage = false;
 });            
</script>
**<script src="http://www.mywebsite.com/scripts/CUSTOMSCRIPT.js" type="text/javascript"></script>**  

【讨论】:

    【解决方案3】:

    不包括所有的移动 css,只包括名称中带有结构的 css:jquery.mobile.structure-1.4.5.css

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-06-05
      • 1970-01-01
      • 2013-05-15
      • 2012-12-21
      • 1970-01-01
      • 2016-05-20
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多