function openwx(){
locatUrl = "weixin://";
if(/ipad|iphone|mac/i.test(navigator.userAgent)) {
var ifr =document.createElement("iframe");
ifr.src = locatUrl;
ifr.style.display = "none";
document.body.appendChild(ifr);
}else{
window.location.href = locatUrl;
}
}
扫描二维码关注公众号,回复:
2056325 查看本文章