myeslipse里加入jquery-1.6.4.js无效
如题
<script src="/js/jquery-1.6.4.js" type="text/javascript">
</script>
<script language="javascript">
function loadimage(){
document.getElementById("randImage").src="image.jsp?"+Math.random();
}
</script>
<script language="javascript">
$(function(){
$("#bt").click(function(){
alert("haha");
});
});
</script>
<base href="<%=basePath%>">
<title>My JSP 'Register.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
</head>
<body>
<form action="Success.jsp">
<table>
<tr><td><input type="text" id="te"/></td><td><img alt="code" id="randImage" src="image.jsp" width="60" height="20" border="1" align="absmiddle"/> </td></tr>
<tr><td height="36" colspan="2" align="center" valign="middle"><a href="javascript:loadimage();"><font>看不清</</font></a></td></tr>
</table>
<input type="button" id="bt" value="提交 "/>
</form>
</body>
</html>
我的haha没有打印出来
------解决方案--------------------src="/js/jquery-1.6.4.js"
会不会是路径问题?
------解决方案--------------------src="js/jquery-1.6.4.js"
------解决方案--------------------