hasAttr
This commit is contained in:
parent
4471b2ad6e
commit
d986588f0e
|
@ -5,7 +5,7 @@
|
|||
$(function() {
|
||||
$("a").each(function() {
|
||||
var that = this;
|
||||
if (!$(this).hasAttr("href")) {
|
||||
if ($(this).attr("href") === undefined) {
|
||||
return;
|
||||
}
|
||||
$(this).attr("target", "_blank");
|
||||
|
|
Loading…
Reference in New Issue
Block a user