xmlHttp.readyState == 4 && xmlHttp.status == 200xmlHttp.readyState==4是说服务器有响应,xmlHttp.status == 200意思是服务器响应正确,也就是说成功了这个条件是true就写你要让它实现功能的代码了