我想在不使用 request.post['name'] 的情况下将 ajax 请求的数据部分作为字典放入 django
$.ajax({
url: "getAppointments",
method: "POST",
data: data, //I want to get this data as a dictionary in django
context: document.body,
}).done(function(data) {
alert("Successfully Edited");
}).fail(function(returnedText) {
window.alert("An error has occurred. Check log for details"+returnedText.responseText);
console.log(returnedText.responseText);
});
素胚勾勒不出你
相关分类