ajax基础请求

ajax基础请求

//结果多选渲染ajax
	$.ajax({
		url: "xxx",//"xxx?xx"
		type: "get",
		dataType: 'json',
		success: function(data) {
			//输入获取到的数据
			console.log(data)
		},
		error: function(data) {
			console.log("error")
			//可以写假数据用来测试
		}
	})
})
原文地址:https://www.cnblogs.com/furfur-jiang/p/12238731.html