我想在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)
React中設置setState?
慕妹3242003
2018-09-10 13:14:21