📅  最后修改于: 2022-03-11 15:01:53.880000             🧑  作者: Mango
var externalLinks = document.querySelectorAll('a[href^="http"]');
for (var i = externalLinks.length-1; i >= 0; i--) {
externalLinks[i].addEventListener("click", function() { alert(); }, false);
}