나는 이걸 사용하여 새 창에서 나가는 링크를 엽니 다. 그러나 대상이 일 때 이미지 alt를 제목으로 표시하고 싶습니다.jQuery : 기본 이미지에서 ahref 제목
$("a[href*='http://']:not([href*='"+location.hostname+"']),
[href*='https://']:not([href*='"+location.hostname+"'])")
.addClass("external")
.attr("target","_blank")
.attr("title", "Open link in new window");
});
.attr ("title")에 이것을 추가하는 가장 쉬운 방법은 무엇입니까?
''태그 사이에 ''이 있다는 것을 의미합니까? –
예, 다음과 같이 : – PHearst