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