1
Sivan 2012 年 2 月 20 日
选择器用$("a[rel*='external']")
a[rel="external"]')是完全相等。 |
3
run2 OP windows open firefox不打开新的 。。。
|
4
Sivan 2012 年 2 月 20 日
@sobigfish 我的 Firefox 可以啊。
下面是我用的,不用自己手动加 external,然后带 external 的弹窗打开。 $(document).ready(function(){ $(".entry-content a[href*='http://']:not([href*='"+location.hostname+"'])").attr({rel:"external"}); $("a[rel*='external']").click(function(){window.open(this.href);return false}); }); |