代码如下:/* 浏览器判断 */ var userAgent = navigator.userAgent.toLowerCase(); var is_webtv = userAgent.indexOf(‘webtv’) != -1; var is_kon = userAgent.indexOf(‘konqueror’) != -1; var is_mac = userAgent.indexOf(‘mac’) != -1; var is_saf = userAgent.indexOf(‘applewebkit’) != -1 || navigator.vendor == ‘Apple Compu