ajax基础请求

ajax基础请求

//结果多选渲染ajax
	$.ajax({
		url: "xxx",//"xxx?xx"
		type: "get",
		dataType: 'json',
		success: function(data) {
			//输入获取到的数据
			console.log(data)
		},
		error: function(data) {
			console.log("error")
			//可以写假数据用来测试
		}
	})
})
posted on 2019-11-26 21:14  furfur-jiang  阅读(87)  评论(0编辑  收藏  举报