标签:class code string c line user
if
(navigator.userAgent.indexOf(
"MSIE"
)>0) {
return
"MSIE"
;
}
if
(isFirefox=navigator.userAgent.indexOf(
"Firefox"
)>0){
return
"Firefox"
;
}
if
(isSafari=navigator.userAgent.indexOf(
"Safari"
)>0) {
return
"Safari"
;
}
if
(isCamino=navigator.userAgent.indexOf(
"Camino"
)>0){
return
"Camino"
;
}
if
(isMozilla=navigator.userAgent.indexOf(
"Gecko/"
)>0){
return
"Gecko"
;
}
标签:class code string c line user
原文地址:http://www.cnblogs.com/lanxianling/p/3713434.html