jquery对象.load(url,params,function(数据){});
$.get(url,params,function(参数){},type);
		发送get请求的ajax
			url:请求的路径
			params:请求的参数 参数为key\value的形式 key=value  {"":"","":""}
			fn:回调函数 参数就是服务器发送回来的数据
			type:返回内容格式,xml, html, script, json, text, _default。    以后用"json"
 
$.post(url,params,function(数据){},type);
		发送post请求的ajax
		
		若结果为json格式,  打印返回值的时候是一个对象 
			例如若json为 {"result":"success","msg":"成功"}
			获取msg 只需要	参数.msg
		$.ajax([选项]);
			选项的可选值:
				url:请求路径
				type:请求方法
				data:发送到服务器的数据
				success:fn 成功以后的回调
				error:fn 异常之后的回调
				dataType:返回内容格式 经常使用json
				async:设置是否是异步请求
			例如:
				$.ajax({
					url:"<%=basePath%>customer/detail.action",
					type:"get",
data:{"id":1},
success:function(data) {
					$("#edit_cust_id").val(data.cust_id);
					$("#edit_customerName").val(data.cust_name);
					$("#edit_customerFrom").val(data.cust_source)
					$("#edit_custIndustry").val(data.cust_industry)
					$("#edit_custLevel").val(data.cust_level)
					$("#edit_linkMan").val(data.cust_linkman);
					$("#edit_phone").val(data.cust_phone);
					$("#edit_mobile").val(data.cust_mobile);
					$("#edit_zipcode").val(data.cust_zipcode);
					$("#edit_address").val(data.cust_address);
				}
					error:function(){},
					dataType:"json"
					
				});
原文:http://www.cnblogs.com/theRhyme/p/6853652.html