ok.html 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>测试</title>
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7. <meta http-equiv="Access-Control-Allow-Origin" content="*" />
  8. <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
  9. <script src="${s3('/jquery/1.11.0/jquery.min.js')}"></script>
  10. </head>
  11. <body>
  12. <div>
  13. <input type="button" style="height: 70px; width: 150px " onclick="clickwwwww();" value="测试"/>
  14. </div>
  15. </body>
  16. </html>
  17. <script src="https://www.w3cways.com/demo/vconsole/vconsole.min.js?v=2.2.0"></script>
  18. <script>
  19. function clickwwwww() {
  20. window.location.href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxa3991865de920847&redirect_uri=http://yuliang.ng.yvanui.com/userOpen/loginTest&response_type=code&scope=snsapi_userinfo&state=123#wechat_redirect';
  21. // debugger;
  22. // $.ajax({
  23. // url: 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxa3991865de920847&redirect_uri=http://yuliang.ng.yvanui.com/userOpen/loginTest&response_type=code&scope=snsapi_userinfo&state=123#wechat_redirect',
  24. // get: "get",
  25. // success: function (data) {
  26. // alert(data);
  27. // console.log(data);
  28. //
  29. // },
  30. // });
  31. }
  32. (function ($) {
  33. })(jQuery);
  34. </script>