能给alert的警告加一个标题的,默认都是“JQuery应用” 同学说那是无法修改的。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <html ><head> <title> jQuery storm - 闭包举例</title></head><body> <div id="divResult"> </div> <script type="text/JavaScript"> function testMethod() { alert("Hello world!"); } testMethod(); //输出 "Hello world!" </script></body>这个alert窗口跳出,能上边的标题吗? alert是不能加,要实现这一的功能,你可以使用div写一个模仿的。 本帖最后由 net_lover 于 2011-07-06 15:30:03 编辑 <html ><head> <title> jQuery storm - 闭包举例</title></head><body> <div id="divResult"> </div> <script type="text/JavaScript"> function testMethod() { alert(document.title); } testMethod(); //输出 "Hello world!" </script></body> <!DOCTYPE html><html><head> <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script> <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script> <script> $(document).ready(function() { $("#dialog").dialog(); }); </script></head><body style="font-size:62.5%;"> <div id="dialog" title="对话框标题">I'm in a dialog</div></body></html> alert 不能加标题。试试这个http://trentrichardson.com/Impromptu/index.php jquery 一个form表单获取多个submit value值的问题 请大家帮忙,通过javascript控制frameset的row值 js,或jquery里面可不可以定义数组 各位帮忙测试一下代码?不长。 jquery ie8兼容问题 请高人指教 Jquery pageY 如何判断下拉条中的内容是否被选中? 关于onchange的问题 请教一个替换的问题,大家来帮帮忙 请问: 谁有菜单展开的JS代码,我要把test3做成一个收缩展开菜单。 如何用JS实现网页“右键==>>打印”的功能?
<head>
<title> jQuery storm - 闭包举例</title>
</head>
<body>
<div id="divResult">
</div>
<script type="text/JavaScript">
function testMethod()
{
alert("Hello world!");
}
testMethod(); //输出 "Hello world!" </script>
</body>这个alert窗口跳出,能上边的标题吗?
<head>
<title> jQuery storm - 闭包举例</title>
</head>
<body>
<div id="divResult">
</div>
<script type="text/JavaScript">
function testMethod()
{
alert(document.title);
}
testMethod(); //输出 "Hello world!" </script>
</body>
<html>
<head>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<script>
$(document).ready(function() {
$("#dialog").dialog();
});
</script>
</head>
<body style="font-size:62.5%;">
<div id="dialog" title="对话框标题">I'm in a dialog</div></body>
</html>
试试这个
http://trentrichardson.com/Impromptu/index.php