<!DOCTYPE html> <html lang="en"> <head> <script type="text/javascript"> var ua = window.navigator.userAgent; var arr=ua.split("; "); var ie=arr[1].match(/\d/,""); if (ie<8){ window.location.href="http://www.baidu.com"; } </script> <meta charset="UTF-8"> <title>判断ie浏览器的版本</title> </head> <body> </body> </html>
时间: 2024-11-03 14:03:14