$.ajax({
type: "Get",
contentType: "application/json",
data: { sorted_ids: sortedId, sorted_row_ids: sortedRowId,
sorted_col_ids: sortedColId},
url: "/inventory/drag",
dataType: "json",
success: function(data) {
alert("sucess");
},
error: function(XMLHttpRequest, textStatus, errorThrown) {
alert("unsucessful");
}
});
<%= button_to "save","#",:title => "save",:id => "save_button" %>
当我单击按钮时,我会收到警报,但没有触发 ajax 调用。谁能帮我?