1.js判断是不是微信浏览器
function is_weixn(){ var ua = navigator.userAgent.toLowerCase(); if(ua.match(/MicroMessenger/i)=="micromessenger") { return true; }
else { return false; } }
2.关闭当前页(兼容火狐和谷歌)
方法一、function custom_close(){
var opened=window.open('about:blank','_self');
opened.opener=null;
opened.close();
}
转载于:https://www.cnblogs.com/QIQIZAIXIAN/p/6762011.html
相关资源:ART2wNF及其稳定性-可塑性动态平衡性能分析