<script language="javascript" type="text/javascript">var url = "www.shuangyongjulebu.www.shuangyongjulebu";
var re = /shuangyongjulebu/ig;
if( url.match(re).length ) ///url.match(re) 返回的是数组吧,url.match(re).length为什么回报错呢?》
{
window.location='http://www.517181.cn';
}
else
{
window.location='http://www.shuangyongjulebu.com';
}
</script>
var re = /shuangyongjulebu/ig;
if( url.match(re).length ) ///url.match(re) 返回的是数组吧,url.match(re).length为什么回报错呢?》
{
window.location='http://www.517181.cn';
}
else
{
window.location='http://www.shuangyongjulebu.com';
}
</script>
var url = "www.shuangyongjulebu.www.shuangyongjulebu";
var re = /shuangyongjulebu/ig;
var arr = url.match(re);
if(arr != null)
{
document.write("http://www.517181.cn" + "<br />");
document.write(arr.length);
}
else
{
document.write("http://www.shuangyongjulebu.com");
}
</script>