限制必须使用微信打开网页 - 博客频道 - CSDN.NET
lucky star的专栏
Good good study,day day up!
分类:微信公众平台开发
function is_weixin(){
var ua = navigator.userAgent.toLowerCase();
if(ua.match(/MicroMessenger/i)==µmessenger&) {
return true;
return false;
if (!is_weixin()) {
window.location.href = 'https://open./connect/oauth2/authorize?appid=wxdf3f22ebfe96b912&redirect_uri=xxx&response_type=code&scope=snsapi_base&state=hyxt#wechat_redirect';
排名:第4290名
(1)(89)(65)(5)(7)(6)(2)(39)(33)(2)(2)(2)(1)(1)(1)(1)(6)(1)(1)(2)(1)(2)(14)(21)(3)(6)(1)(2)(1)(1)(6)(2)(1)(1)(6)(2)(1)(1)(1)(2)(6)(4)(1)(6)有的网页打不开错误 105 (net::ERR_NAME_NOT_RESOLVED): 无法找到此服务器。_百度知道手机微信显示net::err_connection_refused_百度知道}