1.使用xmlHttpRequest实现Ajax代码:
2.使用Jquery实现Ajax代码
实现Ajax的两种代码
原文:http://www.cnblogs.com/DaneJiang/p/3537640.html