$.ajax({
type: 'POST',
url: '@Url.Action("SetDisplaySettings", "DisplaySettings")',
data:$('#Form1').serialize(),
success: function (result) {
$('#chkIsSystemDefault').prop('checked', false);
if(result=="2"){
showAlertBox("Display Settings updated.");
}
}
});
我需要再傳一個參數CountryId
。我怎樣才能做到這一點?如何在ajax中傳遞更多參數?
可能像'數據:{數據:$( '#Form1的')序列化(),countryId:CountryId}' –