本文介绍了ajax没有工作onreadystatechange功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 var xmlhttp;if(window.XMLHttpRequest){xmlhttp=new XMLHttpRequest();}xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4 && xmlhttp.readyState==200){alert(xmlhttp.responseText);}}xmlhttp.open(GET,"signupin.php",true);xmlhttp.send(); signupin.php echo(你好); 代码应该提醒你好 问题出在哪里?signupin.phpecho("hello");the code should alert hellowhere is the problem?推荐答案 如需参考,请查看以下链接中的jquery文档 ajax 看到魔法!希望这对你有帮助。For reference please have a look at jquery documentation from below linkajax call using JQuerySee the magic!Hope this will help you. 这篇关于ajax没有工作onreadystatechange功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
11-02 13:24