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