function getTableContent(node) { event.preventDefault(); var tr = node.parentNode.parentNode; var id_val = tr.cells[0].innerText; $.ajax({ url:'/deleteSoftInRservice', // data: {'mylist': JSON.stringify(myList)}, 这种方式可以通过ajax传递给后端一个list data: {'delid':id_val}, type: 'POST', dataType:'JSON', // async: true, traditional:true, success: function (obj) { if(obj.status){ $("#delete").val("删除成功"); setTimeout(function () { location.reload() },3000) } } }) }