我想在React中调用ajax设置DATA,可是setState时报错?为什么报错信息如下?我该如何修改?代码打包之类的是好的?可以打印出TESTindex.bundle.js?__VERSION:91 Uncaught TypeError: Cannot read property 'setState' of nullat success (http://localhost:8000/js/index.bundle.js?__VERSION:91:26)at ajaxSuccess (http://localhost:8000/js/index.bundle.js?__VERSION:1906:31)at XMLHttpRequest.xhr.onreadystatechange (http://localhost:8000/js/index.bundle.js?__VERSION:2107:99)
添加回答
举报
0/150
提交
取消