ajax
$.ajax({
type: "xxxx",
url: "xxx",
data: { "xxx": "xxx"},
success: function (data, status) {
if (status == "success") {
toastr.success('提交数据成功');
}
},
error: function () {
toastr.error('Error');
}
});