$(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';
},
Thank you for the good writeup. It in fact was a amusement account it. Look advanced to more added agreeable from you! However, how could we communicate?
of course like your web site but you need to take a look at the spelling on several of your posts. Several of them are rife with spelling issues and I find it very bothersome to inform the reality however I¦ll certainly come again again.
I am so happy to read this. This is the type of manual that needs to be given and not the accidental misinformation that’s at the other blogs. Appreciate your sharing this greatest doc.
Woah! I’m really enjoying the template/theme of this blog. It’s simple, yet effective. A lot of times it’s tough to get that “perfect balance” between user friendliness and visual appeal. I must say that you’ve done a great job with this. Additionally, the blog loads super fast for me on Internet explorer. Excellent Blog!
Wow, wonderful blog layout! How long have you been blogging for? you made blogging look easy. The overall look of your site is fantastic, as well as the content!