📅  最后修改于: 2022-03-11 15:01:35.755000             🧑  作者: Mango
var checkItems = $('[name="checkbox"]:checked');
var combines = [];
$.each(checkItems, function (i, arqs) {
combines.push($(this).attr('data-combine'));
});
var param = {
'cmbinedata': combines
}
$.ajax({
url: '@Url.Action("YourMethodName", "YourCOntrollerName")',
data: JSON.stringify(param),
type: "POST",
dataType: "json",
contentType: 'application/json; charset=utf-8',
success: function (result) {
//do something
},
error: function (err) {
tata.error('Error', "Error !!!");
location.reload();
}
});