<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="GB18030"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB18030">
<title>jQuery</title>
<script type="text/javascript" src="js/jquery-1.3.1.js"></script>
<script type="text/javascript">
<!--
//执行机制:必须等待网页中所有的内容加载完毕后才能执行
//一个页面只能有一个onload执行
window.onload = function() {
alert("window onload !!");
};
//执行机制:网页中所有DOM结构绘制完毕后就执行,可能DOM元素关联的东西并没有加载完毕
//一个页面可以有多个
//支持简写
$(document).ready(function() {
alert("jQuery onload!!");
});
//JQuery的onload简写如下
$(function() {
alert("jQery onload JX !!");
});
-->
</script>
</head>
<body>
</body>
</html>