`
leiwuluan
  • 浏览: 695082 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类

Jquery ajax方法的使用

阅读更多
$.ajax({
	type		:	"POST",
	async		:	true, //是否异步请求
	timeout		:	8000,//设置请求超时时间(毫秒)。此设置将覆盖全局设置。
	url		:	'url',
	data		:	pageRool,
	error		:	function(XMLHttpRequest, textStatus, errorThrown){

	},success	:	function(data, textStatus){ // data 可能是 xmlDoc, jsonObj, html, text, 等等...

	}
});

 

1
1
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics