<html
<head>
<script type="text/javascript" src="jquery-1.4.2.js"/>
<script type="text/javascript" src="jquery-ui-1.8.16.custom.min.js"/>
<link href="jquery.ui.all.css" rel="stylesheet" type="text/css" />
</head>
<body><script language="javascript">
window.onload=function(){
alert("nihao");
};</script>
<div id="dialog1" title="base dialog"><p>简单的例子</p></div>
<script language="javascript"> $(document).ready(function(){ alert($("#dialog1").text());
$("#dialog1").dialog(); }); </script></body>
</html>----------------------------------------------
想用jquery ui 做一个dialog的demo,可为什么这个ui.js总是引入不到我的jsp中来jquery-1.4.2.js 是被引入进来了
jquery-ui-1.8.16.custom.min.js 为什么没被引入进来啊?? <link href="jquery.ui.all.css" rel="stylesheet" type="text/css" />这个不知道因没引进来??是不是还少了什么.js啊????
<head>
<script type="text/javascript" src="jquery-1.4.2.js"/>
<script type="text/javascript" src="jquery-ui-1.8.16.custom.min.js"/>
<link href="jquery.ui.all.css" rel="stylesheet" type="text/css" />
</head>
<body><script language="javascript">
window.onload=function(){
alert("nihao");
};</script>
<div id="dialog1" title="base dialog"><p>简单的例子</p></div>
<script language="javascript"> $(document).ready(function(){ alert($("#dialog1").text());
$("#dialog1").dialog(); }); </script></body>
</html>----------------------------------------------
想用jquery ui 做一个dialog的demo,可为什么这个ui.js总是引入不到我的jsp中来jquery-1.4.2.js 是被引入进来了
jquery-ui-1.8.16.custom.min.js 为什么没被引入进来啊?? <link href="jquery.ui.all.css" rel="stylesheet" type="text/css" />这个不知道因没引进来??是不是还少了什么.js啊????
方法可以执行 证明 jquery.js被引入进来了可我在ui.js文件中第一句放一个alert()一直不弹出啊 证明没被引入进来
/*
* jQuery UI Dialog 1.8.16
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Dialog
*
* Depends:
* jquery.ui.core.js
* jquery.ui.widget.js
* jquery.ui.button.js
* jquery.ui.draggable.js
* jquery.ui.mouse.js
* jquery.ui.position.js
* jquery.ui.resizable.js
*/
$("#dialog1").dialog();------------------------
告诉我你的邮箱 我把文件发给你你看看
<script type="text/javascript" src="jquery-ui-1.8.16.custom.min.js"/>改成<script type="text/javascript" src="jquery-1.4.2.js"></script>
<script type="text/javascript" src="jquery-ui-1.8.16.custom.min.js"></script>