摘要: 实现Ajax的步骤: 1.创建xmlhttprequest对象 假设得到了xmlhttprequest的对象xhr 2.创建与服务器的连接 使用open创建连接,open里有三个参数 open(method,url,asynch) /*method 有两种选择 GET POST * url 为要请求的服务器上的文件请求路径 *asynch 表示是否异步,true表示异步,fal... 阅读全文
posted @ 2015-05-19 10:44 专业修潜艇 阅读(101) 评论(0) 推荐(0)