1、设置文本值
<html>
<head>
<script type="text/javascript" src="/jquery/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$(".btn2").click(function(){
$("p").text("66666666666666");
});
});
</script>
</head>
<body>
<p>hhhhhhhhhhhhhhh</p>
<p>hhhhhhhhhhh</p>
<button class="btn2">改变所有 p 元素的文本内容</button>
</body>
</html>
2、获取文本值
$(".btn1").click(function(){
alert($("p").text());
});
3、待续