1、Jquery包装器
选择标签并替换内容:
<body>
<script type="text/javascript">
$(document).ready(function(){
$("#div1 .class1").html('好天气呀');
});
</script>
</body>
选择所有偶数的P标签:
选择表格第一行:
$("tr:nth-child(1)");
选择body直接子节点DIV
$("body>div")
1、Jquery包装器
选择标签并替换内容:
<body>
<script type="text/javascript">
$(document).ready(function(){
$("#div1 .class1").html('好天气呀');
});
</script>
</body>
选择所有偶数的P标签:
选择表格第一行:
$("tr:nth-child(1)");
选择body直接子节点DIV
$("body>div")

被折叠的 条评论
为什么被折叠?