ajax怎么在前台页面跨域请求这个微信链接并且获取openid值
https://api.weixin.qq.com/sns/oauth2/access_token?appid=APPID&secret=SECRET&code=CODE&grant_type=authorization_code
$.ajax({ //要用post方式 type: "Post", //方法所在页面和方法名 url: "http://test.peiwoapi.com:8920/report/list?uid=1&page=1&gender=3&sign=0c44ee473ab5362dae57b45575521bd0&callback=callback", contentType: "application/json; charset=utf-8", dataType: "json", success: function(data) { alert("success"); }, error: function(err) { alert("5454"+err.code); } });试试我的这个方式,关掉异步,用json不用jsonp