第01章 jQuery入门

index.html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>第一个 jQuery 程序</title>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="demo.js"></script>
</head>
<body>
<input type="button" value="button" />
</body>
</html>

demo.js

// JavaScript Document
$(function(){
	$('input').click(function(){
		alert('第一个 JQ 程序!');
	});
});

猜你喜欢

转载自onestopweb.iteye.com/blog/2223429
今日推荐