<p class="success">订阅成功!</p> <div class="btn" @click="finish">完成</div> finish:function(){ if (typeof WeixinJSBridge == "undefined") { if (document.addEventListener) { document.addEventListener('WeixinJSBridgeReady', weixin_ClosePage, false); } else if (document.attachEvent) { document.attachEvent('WeixinJSBridgeReady', weixin_ClosePage); document.attachEvent('onWeixinJSBridgeReady', weixin_ClosePage); } } else { WeixinJSBridge.call('closeWindow'); } }
转载于:https://www.cnblogs.com/yancongyang/p/9966437.html