2013年1月8日

[转载]xmlHttp的readyState 和 status参数详解

摘要: 出处:http://blog.csdn.net/xiaxiaorui2003/article/details/4084115AJAX中有检查状态码的,xmlHttp.onreadystatechange=handleStateChange;function handleStateChange(){ if(xmlHttp.readyState==4) { if(xmlHttp.status==200) { parseResults();//解析返回值 } }}readyState 和status都是什么意思呢?XMLHTTP 的 readyState 值含义:0-未初始化,即尚未调用 open。 阅读全文

posted @ 2013-01-08 10:58 风林幻海 阅读(262) 评论(0) 推荐(0) 编辑

导航