jQuery选择符

$('a').filter(function(){
return this.hostname && this.hostname != location.hostname;
}).addClass(
'external');

  

posted @ 2011-08-09 10:35  绯色卡卡  阅读(133)  评论(0)    收藏  举报