我试图向ajax
delete
这个 url 发送一个请求但是得到一个弹出错误。
$( "#dialog-confirm" ).dialog({
resizable: false,
height:140,
modal: true,
buttons: {
"Delete": function() {
//To show the loader
//Ajax call to delete the data
$.ajax({
type: "DELETE",
url: window.location.pathname + id + '/centers/' + c,
contentType: 'application/html; charset=utf-8',
data: {
dc : dc,
},
success: function(){} }); });
错误是
此网页正在重定向到新位置。您想将您输入的表单数据重新发送到新位置吗?
https://my2.v2.domain.com/grd/net/lb/checker/Env2/centers/11
(这是我要发送的演示网址。)
提前致谢