如果判断浏览器是微信内置浏览器
<script type="text/javascript"> $(document).ready(function(){ var ua = navigator.userAgent.toLowerCase(); if(ua.match(/MicroMessenger/i)=="micromessenger") { //alert("true"); } else { //alert("false"); window.location.href="http://2014.chinayq.com"; } }); </script>
引用以上代码即可判断,如果非微信内置浏览器,可以跳转到其它提示网站。