$(parent,selected).on(events,handle),另一种$(parent).on(events,selected,handle);这种写法对动态添加元素事件有效。如:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>圣诞主题</title>
<style type="text/css">
ul{ background-color:red;}
li{ background-color:yellow;}
</style>
<script src="http://libs.baidu.com/jquery/1.9.1/jquery.js"></script>
</head>
<body>
<ul>
<li>1111</li>
<li>2222</li>
<li>3333</li>
</ul>
<script type="text/javascript">
$(function(){
$("ul").on("click","li",function(){alert(1);$(this).after("<li>6666</li>")})
})
</script>
</body>
</html>