Javascript区别浏览器代码_javascript技巧
来源:动视网
责编:小采
时间:2020-11-27 20:43:27
Javascript区别浏览器代码_javascript技巧
Javascript区别浏览器代码_javascript技巧: TAG index Web 浏览器判別: '); // 包含「Opera」文字列 if(navigator.userAgent.indexOf(Opera) != -1) { document.write('您的浏览器时Opera吧?'); } // 包含「MSIE」文字列 else if(navigator.userAg
导读Javascript区别浏览器代码_javascript技巧: TAG index Web 浏览器判別: '); // 包含「Opera」文字列 if(navigator.userAgent.indexOf(Opera) != -1) { document.write('您的浏览器时Opera吧?'); } // 包含「MSIE」文字列 else if(navigator.userAg
Javascript区别浏览器代码_javascript技巧
Javascript区别浏览器代码_javascript技巧: TAG index Web 浏览器判別: '); // 包含「Opera」文字列 if(navigator.userAgent.indexOf(Opera) != -1) { document.write('您的浏览器时Opera吧?'); } // 包含「MSIE」文字列 else if(navigator.userAg