<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta NAME="Generator" CONTENT="EditPlus">
<meta NAME="Author" CONTENT="">
<meta NAME="Keywords" CONTENT="">
<meta NAME="Description" CONTENT="">
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(window).bind("load",function() { // 注意这里的 优先级 这个方法很特殊
alert("This is bind window loaded1");
});
$(function() {
alert("!!");
$(document).ready(function() {
alert("helloworld");
});
jQuery(function(){
alert("JQuery");
});
//但是window.onload却要比他们快
window.onload = function() {
alert("window onload");
}
</script>
</HEAD>
<BODY>
入门的第一个例子,一般都是HelloWorld
</BODY>
</HTML>
alert("This is bind window loaded1");
});
$(function() {
alert("!!");
});
$(window).bind("load",function() { // 注意这里的 优先级 这个方法很特殊
alert("This is bind window loaded2");
});
$(document).ready(function() {
alert("helloworld");
});
jQuery(function(){
alert("JQuery");
});
//但是window.onload却要比他们快
window.onload = function() {
alert("window onload");
}
</script>
</HEAD>
<BODY>
入门的第一个例子,一般都是HelloWorld
</BODY>
</HTML>