- 博客(3)
- 收藏
- 关注
转载 xmlhttp的onreadystatechange为什么在send前面
在使用ajax向服务器发送请求的时候,由于粗心没有在意xmlHttp.onreadystatechange和xmlHttp.send的书写顺序,我把xmlHttp.send();写在xmlHttp.onreadystatechange的前面,开始并没有出现任何问题。直到使用IE7调试web前端样式的时候,才发现ajax无法得到正常的结果。最终找到问题的原因是xmlhttp的onreadystate
2017-04-13 17:22:31
3363
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人