var isOpera = navigator.userAgent.indexOf('Opera') > -1
if (navigator.userAgent.indexOf('Chrome') > -1) {
return 'chrome'
} else if (navigator.userAgent.indexOf('Firefox') > -1) {
return 'Firefox'
} else if (!!window.ActiveXObject || 'ActiveXObject' in window) {
return 'IE'
} else if (navigator.userAgent.indexOf('Safari') > -1) {
return 'safari'
}
网友评论