openLink(circle) {
let url = circle.Content.Link.Url
var a = document.createElement('a');
a.setAttribute('href', url);
a.setAttribute('target', '_blank');
a.setAttribute('id', 'js_a');
//防止反复添加
if (document.getElementById('js_a')) {
document.body.removeChild(document.getElementById('js_a'));
}
document.body.appendChild(a);
a.click();
},
js 实现a标签的效果
最新推荐文章于 2022-10-31 11:45:17 发布
768

被折叠的 条评论
为什么被折叠?



