INVALID_STATE_ERR: DOM Exception 11

后端 未结 4 1903
隐瞒了意图╮
隐瞒了意图╮ 2021-02-05 11:14

I\'m developing a simple auxiliary class to send requests using XmlHttpRequest (code below). But I cant make it work. At google chrome, for example, I get the error INVALI

4条回答
  •  萌比男神i
    2021-02-05 11:44

    In my case the error occurred when i tried to access xhr.statusText within the xhr.onreadystatechange method, however retrieving xhr.readyState went just fine.

提交回复
热议问题