用JS实现域名替换跳转
星期五 2016年9月30日 王佳明 技术 0人
用JS实现域名替换跳转
<script language="javascript" >
var current_url = window.location.href;
target_url = current_url.replace("老玉米.com","新域名.com");
window.location = target_url;
</script>
本站内容多数为佳明one原创,少量转载自网络。
- 本文标题:用JS实现域名替换跳转
- 本文地址:https://itjm.com/2016/09/690.html
