ok.html 957 B

123456789101112131415161718192021222324252627282930313233343536
  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>
  18. function clickwwwww() {
  19. debugger;
  20. $.ajax({
  21. 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',
  22. get: "get",
  23. success: function (data) {
  24. alert(data);
  25. console.log(data);
  26. },
  27. });
  28. }
  29. (function ($) {
  30. })(jQuery);
  31. </script>