微信浏览器内部屏蔽了apk的下载链接,目前找到两种方式解决:
if(ua.match(/MicroMessenger/i)=="micromessenger") {
document.getElementById("download_desc").href = url_wx;
document.getElementById("download_pic").href = url_wx;
} else {
document.getElementById("download_desc").href = url_nwx;
document.getElementById("download_pic").href = url_nwx;
}
1 url跳转:参考了nice的跳转方式,将跳转链接改为如下方式即可跳转,http://ti.3g.qq.com/open/s?aid=jumpurl&url=http://url.cn/KPhiHE
2 应用宝下载:apk上传到应用宝,应用宝的下载页面可正常跳转