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