为什么加了jquery mobile 会有 Loading 字样在页面底部?【已解决】

这是一个奇怪的问题,用了jquery mobile js库,页面底部就会出现Loading字样,

解决办法如下:

1,正常加上css样式

2,一定要在jquery mobile js库加载之前,设置 mobile.loadingMessage = false;具体如下:


    <head>
        <title>jQM Complex Demo</title>
        <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0"/>
        <link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css" />
        <script type="text/javascript">
            $(document).bind('mobileinit',function(){
                $.mobile.loadingMessage = false;
            })
        </script>    
        <script src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js"></script>    
    </head>


参考网页:

http://stackoverflow.com/questions/14802547/loading-massage-generated-at-the-bottom-of-the-page-in-jqm

原文地址:https://www.cnblogs.com/Free-Thinker/p/10955906.html