通过本文主要向大家介绍了一个封装的Ajax类等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
用法:
new Ajax().Request(url,cmd,async,method,postString,title)
参数:
url: 请求页面URL(必填)
cmd: 返回值处理函数(必填)
async: 是否异步 ,(ture|false), 默认true
method: 请求方式,(post|get), 默认get
postString: 请求方式为post时,请求内容
title: 请求内容标题
if (method=="post") {msgb