// 判断是否在微信内打开
function isWeiXin:() {
var ua = window.navigator.userAgent.toLowerCase();
if (ua.match(/MicroMessenger/i) == 'micromessenger') {
return true; //是
} else {
return false; //不是
}
},