function commitTask(data) {
data = JSON.stringify(data)
$.ajax({
type: "post",
url: 'http://127.0.0.1:9999' + '/task/taskHandle',
data: data,
contentType: 'application/json;charset=UTF-8',
dataType: "json",
success: function (res) {
var data = res.data
dialog.set("resultIndex", orderIndex)
showMsg(res.message, undefined, function () {
dialog.close()
})
}
})
}
ajax请求例子
最新推荐文章于 2023-06-23 08:35:29 发布