大家好,又见面了,我是你们的朋友全栈君。
那就是判断useragent
if (navigator.userAgent.match(/MicroMessenger/i) != 'MicroMessenger'){
window.location.href='wxerror.jsp';
}
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/133844.html原文链接:https://javaforall.net
如何实现 请在微信客户端打开链接那就是判断useragentf(navigator.userAgent.match(/MicroMessenger/i)!=’MicroMessenger’){window.location.href=’wxerror.jsp’;}
大家好,又见面了,我是你们的朋友全栈君。
那就是判断useragent
if (navigator.userAgent.match(/MicroMessenger/i) != 'MicroMessenger'){
window.location.href='wxerror.jsp';
}
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/133844.html原文链接:https://javaforall.net