页面未正确加载 [英] page not loaded correctly
本文介绍了页面未正确加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有home.php
我正在运行以下代码:
i have home.php
where i am running follwing code:
<script type="text/javascript">
$(document).ready(function()
{
alert('Page Loaded');
});
</script>
首次加载页面时它不显示警报(页面加载).it只有在我刷新了那个页面后才会显示..
帮助我
when the page is loaded first time it doesnt show alert(page loaded).it will show only after i refreshed that page..
help me
推荐答案
(文件).ready (function()
{
alert('Page Loaded');
});
< / script >
(document).ready(function() { alert('Page Loaded'); }); </script>
首次加载页面时它不显示警报(页面加载).it只有在刷新了那个页面之后才会显示..
帮助我
when the page is loaded first time it doesnt show alert(page loaded).it will show only after i refreshed that page..
help me
如果你想在页面加载时显示警告信息这种方法。每次页面加载时都会调用pageload方法。
function pageLoad(){
alert('Page Loaded ');
}
if you want to show alert message at page load use this method. pageload method call everytime when page load.
function pageLoad() {
alert('Page Loaded');
}
这篇关于页面未正确加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文