AspNetCore.Docs/aspnetcore/includes/add-javascript-jquery/samples/sample6.js

10 lines
231 B
JavaScript

$.ajax({
url: uri + '/' + $('#edit-id').val(),
type: 'PUT',
accepts: "application/json",
contentType: "application/json",
data: JSON.stringify(item),
success: function (result) {
getData();
}
});