标签:log navigator 微信 blog class mat nav case else
//判断是否是微信浏览器 function is_weixin() { var ua = navigator.userAgent.toLowerCase(); if (ua.match(/MicroMessenger/i) == "micromessenger") { return 1; //是 } else { return 2; //否 } }
标签:log navigator 微信 blog class mat nav case else
原文地址:http://www.cnblogs.com/AaronNotes/p/6518047.html