如何在加载内容页面时显示警报 [英] How to display alert on loading of content page

查看:58
本文介绍了如何在加载内容页面时显示警报的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



在我的项目中,我正在使用母版页,我在主页面上写了一条警告信息。比如



< body id =sitebody1onload =alert('hello');



它的工作正常。但在我的一些内容页面此警报不显示。



谢谢

Hello All,

In my project i am using master page and i write a alert message onload of master page.like

<body id="sitebody1" onload="alert('hello');"

Its works fine.But in my some content page this alert is not display.

Thanks

推荐答案

hi
检查暂停代码






hi check the fallowing code




(document).ready(function() {

alert(Hai);

});






(document).ready(function () {
alert("Hai");
});




这篇关于如何在加载内容页面时显示警报的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆