Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/448.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 加载页面时显示图像_Javascript_Jquery_Html_Css - Fatal编程技术网

Javascript 加载页面时显示图像

Javascript 加载页面时显示图像,javascript,jquery,html,css,Javascript,Jquery,Html,Css,我正在使用jquery mobile开发一个移动应用程序。现在,我尝试在页面加载时加载一个图像。我想隐藏加载图像和消息的默认页面,而不是加载外部图像。此外,每当页面加载图像时,我也想隐藏背景(页面内容) 我们将不胜感激 提前谢谢。我想看看spin.js 在加载页面时运行微调器,然后 .spin(false) 阻止它 使用这种方法 $.mobile.loading( 'show', { text: 'foo', textVisible: true, theme: 'z',

我正在使用jquery mobile开发一个移动应用程序。现在,我尝试在页面加载时加载一个图像。我想隐藏加载图像和消息的默认页面,而不是加载外部图像。此外,每当页面加载图像时,我也想隐藏背景(页面内容)

我们将不胜感激

提前谢谢。

我想看看spin.js

在加载页面时运行微调器,然后

.spin(false)
阻止它

使用这种方法

$.mobile.loading( 'show', {
    text: 'foo',
    textVisible: true,
    theme: 'z',
    html: ""
})

以下是更多说明

无连接。它不起作用。仍然加载默认页面加载imageNope。仍然不工作。无论何时加载页面,它都会加载默认图像。我想我们必须在JQM中覆盖.ui loader{}。@ThiyagarajanSelvaraj您必须使用自定义html
自定义html
我已经尝试了$j.mobile.showPageLoadingMsg();$j('body').addClass('ui-load');