示例
var req = { ids: [1, 2, 3] } $.ajax({ url: ‘/.../delete-by-ids‘, type: ‘post‘, data: JSON.stringify(req), dataType: ‘json‘, contentType: "application/json", traditional:true, success: function (data) { callback(data); }, error: function (data) { $.dialog("错误"); } })
原文地址:https://www.cnblogs.com/xiede/p/9032048.html
时间: 2024-10-31 01:39:24