1
function msieversion()
2
// Return Microsoft Internet Explorer (major) version number, or 0 for others.
3
// This function works by finding the "MSIE " string and extracting the version number
4
// following the space, up to the semicolon
5
}
2
3
4
5
同样可以用这种方法判断是否为IE浏览器。
1
function isIE()
2
}
2