$(function () {
//判断是否是微信中的浏览器
var ua = navigator.userAgent.toLowerCase();
console.log(ua)
if (ua.match(/MicroMessenger/i) != "micromessenger") {
closeWindow();
}
})
function closeWindow() {
var userAgent = navigator.userAgent;
if (userAgent.indexOf("Firefox") != -1 || userAgent.indexOf("Chrome") != -1) {
location.href = "about:blank";
} else {
window.opener = null;
window.open('', '_self');
}
window.close();
}
function onBridgeReady() {
WeixinJSBridge.call('hideOptionMenu');
}
if (typeof WeixinJSBridge == "undefined") {
if (document.addEventListener) {
document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false);
} else if (document.attachEvent) {
document.attachEvent('WeixinJSBridgeReady', onBridgeReady);
document.attachEvent('onWeixinJSBridgeReady', onBridgeReady);
}
} else {
onBridgeReady();
}
marginBottom() {
return uni.upx2px(this.itemStyle.marginBottom*2) + 'px';
},
Fantastic website you have here but I was curious if you knew of any forums that cover the same topics talked about here? I’d really like to be a part of group where I can get suggestions from other experienced people that share the same interest. If you have any recommendations, please let me know. Appreciate it!