$.ajax({});

$.ajax({
	// method : "get", //method是jQuery1.9.0及以上新版标准参数。
	type: "get", //type是兼容所有jQuery版本的旧版参数。两者同时写时,type会覆盖method。
	async: true, //默认true异步请求不阻塞;false同步请求阻塞代码直到请求完成
	url: "",
	dataType: "json",
	data: {},
	success: function (res) {
		if (res) {

		}
	},
	error: function (err) {
		console.log(err);
	}
});
posted @ 2026-04-15 14:44  yub4by  阅读(18)  评论(0)    收藏  举报