$("div[*]")
是否有选择器来检查标签是否具有任何属性?
用jQuery 1.3测试
$('*').filter(function(){return this.attributes.length;})
而相反:
$('*').filter(function(){return !this.attributes.length;})