日期:2014-05-16 浏览次数:20797 次
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>My JSP 'index.jsp' starting page</title>
<script language="javascript" type="test/javascript" src="jquery.js"></script>
<script type="text/javascript">
var jq = jQuery.noConflict();
jq(function(){
jq("#test").click(function(){
alert("成功!!");
})
})
</script>
</head>
<body>
<input id="test" type="button" value="Display alert box" />
</body>
</html>