(document).ready(function(){(“#test”).click(function(){
//
(this).find(“p”).show().end().hide();//
(this).find(“p”).html(“来一发!!!”);
var aa =
(this).find("p").get(0);//jquery转js加一个后面的
(this).find(“p”)[0],有这两张方式;
var a = document.getElementById(“#pp”);
aa=
(a); //js转jqury
});
});
jQuery end()方法
讲解jQuery中end()方法。