【RegExp】IE判断、移动端判断(用正则对navigator.userAgent进行处理)
// 7 || 8 || 9 || 10 || NaN window.IE = /MSIE/.test(navigator.userAgent) ? parseInt(navigator.userAgent.split(';')[1].replace(/ MSIE /, '')) : NaN; //true || false window.IsMobile = /Mobile|iPhone|Android|Windows Phone/.test(navigator.userAgent);
浙公网安备 33010602011771号