function
is_weixn(){
var
ua = navigator.userAgent.toLowerCase();
if
(ua.match(/MicroMessenger/i)==
"micromessenger"
) {
return
true
;
}
else
{
return
false
;
}
}
var wx = is_weixn();
if(wx == false){
window.location.href = "wxError.html"
}