Fork me on GitHub
摘要: node后台,前端nginx服务器ajax访问,出现跨域问题,使用nginx反向代理,一定得有http加上 location / { root D:/myhtml; index index.html; } location /projectname/ { proxy_pass http://192. 阅读全文
posted @ 2018-02-24 09:53 森海轮回 阅读(134) 评论(0) 推荐(0) 编辑
摘要: $.ajax({ url:"localhost:8889/server", //请求的url地址 dataType:"json", //返回格式为json async:true,//请求是否异步,默认为异步,这也是ajax重要特性 data:{"id":"value"}, //参数值 type:"GE... 阅读全文
posted @ 2018-02-24 09:32 森海轮回 阅读(160) 评论(0) 推荐(0) 编辑