$(" +p",this) 和 $("p",this)有區(qū)別嗎? <h1>introduction</h1>
<p id="pp">it is a test</p>
<script>
$(document).ready(function(){
$("h1+p").hide();
$("h1").hover(function(){
$("+p",this).show()}, function(){
$("+p",this).hide();});
}); </script>
- 2 回答
- 0 關(guān)注
- 1232 瀏覽
添加回答
舉報
0/150
提交
取消