<!DOCTYPE html>
<html>
<head>
<title>jquery02.html</title>
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="this is my page">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
</head>
<script type="text/javascript" src="../js/jquery-1.7.2.js"></script>
<script type="text/javascript">
$(function(){
$("div > button").each(function(index){
//使用this关键字来确定是哪个按钮触发事件
$(this).click(function(){
//alert(index);
switch(index){
case 0: