Skip to content

Instantly share code, notes, and snippets.

@libo1106
Last active December 20, 2015 22:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save libo1106/6208819 to your computer and use it in GitHub Desktop.
Save libo1106/6208819 to your computer and use it in GitHub Desktop.
isMSIE
// 判断是否IE
function isMSIE(){
var match = /(msie) ([\w.]+)/.exec( navigator.userAgent.toLowerCase() );
if(match !== null){
return true;
}else{
return false;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment