type:'post', contentType:'application/json',//非简单请求,会报错:Request header field content-type is not allowed by Access-Control-Allow-Headers in preflight response.data:JSON.stringify({ a:'1'}), //headers:{b:2}, success:function(response) { console.log(response); } }) }) 浏览器...
data:JSON.stringify({"jsonrpc": "2.0", "method": "login", "params": {'email':$email,'password':$password} , "id": 1}) 回调函数done内容: done(function(data){if('reuslt'indata){alert('ok');}else{alert('error');}}); 2、后端python实现: 用的flask_jsonrpc第三方扩展 其中有一个...