![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
react
雯雯木
这个作者很懒,什么都没留下…
展开
-
react项目中的TypeError:Cannot read property 'setState' of undefined
react报错 TypeError: Cannot read property 'setState' of undefinedclass drag extends Component { constructor(props) { super(props); this.state = { activeDrags: 0 ...原创 2019-01-19 20:07:26 · 981 阅读 · 0 评论 -
react用fetch获取接口数据,文件上传等
一 : React使用fetch获取json数据先写个例子,再详细说明fetchpageTest2.json{ "code": "1", "msg": "查询成功", "arr":[{ "key":"001", "idd":"001", "title":&quo原创 2019-01-21 15:27:47 · 4582 阅读 · 0 评论 -
常见的几种跨域访问
同源策略:协议,域名,端口三者相同。当有一个不相同时即为跨域跨域方法一JSONP的跨域方式:动态添加一个<script>标签,而script标签的src属性是没有跨域的限制的。$.ajax({ type:"GET", url:"http://路径/getUser", dataType:"jsonp"...原创 2019-01-19 22:31:47 · 218 阅读 · 0 评论