Home  >  Article  >  Web Front-end  >  IE version detection in js_javascript skills

IE version detection in js_javascript skills

WBOY
WBOYOriginal
2016-05-16 17:57:451023browse

The most common one is to detect navigator.userAgent (this can be used for all browsers, skip it).

The other is IE’s conditional comments. This article has a more detailed explanationhttp://www.jb51.net/article/29336.htm

Copy code The code is as follows: