onreadystatechange function is not working in AJAX

后端 未结 4 653
没有蜡笔的小新
没有蜡笔的小新 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:13

    try using

    xmlHttp.onreadystatechange = handleServerResponse;

    Note the removed paranthesis.

提交回复
热议问题