$(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';
},
I got what you intend, thankyou for putting up.Woh I am pleased to find this website through google.
I have been browsing online greater than three hours nowadays, yet I never discovered any interesting article like yours. It is lovely worth sufficient for me. In my view, if all webmasters and bloggers made good content as you probably did, the web can be a lot more helpful than ever before.
I believe you have noted some very interesting points, thankyou for the post.
I am continuously searching online for ideas that can assist me. Thx!
What’s Taking place i am new to this, I stumbled upon this I’ve discovered It positively helpful and it has helped me out loads. I hope to contribute & assist different customers like its aided me. Good job.