$(" +p",this) 和 $("p",this)有区别吗?
<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>
慕哥9229398
月关宝盒
侃侃无极
随时随地看视频慕课网APP
相关分类