ajax基础请求

ajax基础请求

//结果多选渲染ajax
	$.ajax({
		url: "xxx",//"xxx?xx"
		type: "get",
		dataType: 'json',
		success: function(data) {
			//输入获取到的数据
			console.log(data)
		},
		error: function(data) {
			console.log("error")
			//可以写假数据用来测试
		}
	})
})
发布了29 篇原创文章 · 获赞 8 · 访问量 1133

猜你喜欢

转载自blog.csdn.net/weixin_44523860/article/details/103265360