直接用$("a").nodeType不行。
用$("body *").contents().("[nodeType=1]")也不行<script>
window.onload=function(){
var a = $("body *").contents().not("[nodeType=1]").parent().each(function(){alert($(this).html())});
}
</script>
<body>
<a href="">1111</a>
<a href=""><span>2222</span></a>
<a href=""><p>3333</p></a>
</body>
所有取出的节点只可能是nodeType=1类型的节点
$("a").nodeType ----> $("a").each(function(){ alert($(this)[0].nodeType });