Commit a2743535 by 刘海龙

11

parent aeed5157
...@@ -154,7 +154,14 @@ ...@@ -154,7 +154,14 @@
//数据监测函数 //数据监测函数
}, },
created: function() { created: function() {
//加载触发函数 //加载触发函数
var ua = navigator.userAgent.toLowerCase();
console.log(ua)
  if(ua.match(/MicroMessenger/i)=='micromessenger') {
    alert('在微信里打开');
  } else {
     alert('不在微信里打开');
  }
} }
}); });
</script> </script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment