Comments (2)
跨域是可以通过的,我在本地部署测试,是可以有用的。我现在抛出到外网访问测试一下。至于参数,本来是之前在xhr中手动设置请求头部的,但是一个朋友说,浏览器会自动加跨域请求头,然后我就去掉了,代码还没来得及更新,马上测试和更新
from ajax.
你可以使用我index.htnl中的方法测试,我抛到外网的接口是:http://zhong123893.oicp.net/api/weixin/ajaxT2/ ,post请求,参数分别为name和age。你可以自己测试下
from ajax.
Related Issues (9)
- 长轮询返回的数据是字符串吗,可以像jquery一样定义返回‘json’参数属性吗 HOT 1
- 提了一个PR,作者可以看下 HOT 1
- 关于原生ajax的错误提出 HOT 5
- 兄弟,错别字啊 HOT 1
- [bug]:数据处理 HOT 4
- 长轮询如何取消操作呢? HOT 1
- ajax.1.9.js文件与微信jweixin-1.2.0文件会导致冲突 HOT 4
- async:false无效 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ajax.