1.服务端判断
Request.Headers["User-Agent"].Contains("MicroMessenger")
2.客户端js判断
var ua = navigator.userAgent.toLowerCase(); if (ua.match(/MicroMessenger/i) == "micromessenger") { } else { }