js判断唤醒某个App的方法,
$("#btn").click(function() {
try{
if(navigator.userAgent.match(/(iPhone|iPod|iPad);?/i)){
window.location.href="weixin://";
}else if(navigator.userAgent.match(/android/i)){
window.location.href="weixin://"; app协议,以微信为例
}
}
catch(e){}
setTimeout(function(){
判断是安卓还是ios
window.location.href=navigator.userAgent.match(/android/i)?"http://a.app.qq.com/o/simple.jsp?pkgname=com.yunmai.scale":"https://itunes.apple.com/cn/app/qq/id444934666?mt=8";
},2000);
})