建站常识

JS 判断后缀名asp并跳转

发布时间 | 2016/10/17  点击 | 

<script type="text/javascript">

var url = location.href,

re  = /\.(asp)/;

if (re.test(url))

{// 这里做跳转

location.href = http://www.021jz.com.cn/news/277.html

}
</script>

相关信息