ajax的使用

$.ajax({
type: 'get',
url: '/sampleStock/confirm',
headers: {
'Content-Type': 'application/json;charset=UTF-8'
},
data: {
sampleDressIdList: sampleDressIdsJoin
},
success: function (data) {
alert('点击全部确认成功')
$('.btn').attr("disabled", 'disabled')
window.location.reload()
},
error: function () {
alert('点击全部确认失败')

}
})
posted @ 2019-07-29 10:28  苏小白啊  阅读(113)  评论(0编辑  收藏  举报