1 2 3 4 5 6 7 8 9 10 11 |
<script type="text/javascript"> function getIEVer() { var ua = navigator.userAgent; var b = ua.indexOf("MSIE "); if (b < 0) { return 0; } return parseFloat(ua.substring(b + 5, ua.indexOf(";", b))); } if(getIEVer()==6){ window.location.href(" http://liaoweitong.cn"); } </script> |
使用了,没有生效哦
说明代码还是有问题的