通过 JS 修改具体标签的属性的属性值
window.addEventListener('DOMContentLoaded', function() {
var anchorTags = document.querySelectorAll('a'); // 获取页面中所有的<a>标签
anchorTags.forEach(function(anchor) {
anchor.setAttribute('target', '_self'); // 将target属性设置为"_self"
});
});