Make rel external links使用jQuery在一个新窗口中打开,并在链接标题中显示它
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Make rel external links使用jQuery在一个新窗口中打开,并在链接标题中显示它相关的知识,希望对你有一定的参考价值。
$("a[rel*='external']").each(function(){ $(this).attr({ target:"_blank", title: ($(this).attr("title")) ? "New window: " + $(this).attr("title") : "Open in new window" }); });
以上是关于Make rel external links使用jQuery在一个新窗口中打开,并在链接标题中显示它的主要内容,如果未能解决你的问题,请参考以下文章