onreadystatechange function is not working in AJAX

后端 未结 4 615
没有蜡笔的小新
没有蜡笔的小新 2021-01-14 09:56

as far as XMLHttpRequest() Object is concerned, it is fine, the problem is with onreadystatechange for example if I put my code this way, it works perfect.<

4条回答
  •  执笔经年
    2021-01-14 10:31

    use this xmlHttp.onreadystatechange = handleServerResponse

    then write as function handleServerResponse(xmlHttp) it will work

提交回复
热议问题