/** * IE 版本检查 * @returns {number} */ function msieVersion(){ var v = 3, div = document.createElement(‘div‘), a = div.all || []; while (div.innerHTML = ‘<!--[if gt IE ‘+(++v)+‘]><br><![endif]-->‘, a[0]); return v > 4 ? v : !v; }
时间: 2024-10-14 08:59:47