可以替换原站地址更换为其他网站地址

<script>
var url=document.location.href;
var str1 = url.replace('www.17179.top', 'blog.172u.cn');
document.getElementById("blogUrl").setAttribute("href",str1);
</script>
 <a id="blogUrl" >图站</a>

此处评论已关闭