定义方法
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<div>
<span onclick="prime(this)">aaaa</span>
<span>bbbb</span>
<span>cccc</span>
</div>
<script type="text/javascript" src="js/jquery.js" ></script>
<script>
function prime(obj){
var val = $(obj).text();
console.log(val)
}
</script>
</body>
</html>
每天进步一点点~~~