【发布时间】:2020-12-16 11:03:33
【问题描述】:
我正在使用 ajax 更新页面而不在 Django 中刷新 我想更新表格但我没有在我的views.py中使用api我可以只刷新表格吗
脚本
$.ajax({
type:'POST',// type of the form
data: $('#tableid').serialize(), // all the form name
success: function (data) {
return data // i don't want all return data i want only table data it should refresh
}
});
【问题讨论】:
-
您需要添加新的 API 或从响应数据中获取相关部分。根据问题中提供的信息,很难回答这个问题。请考虑添加更多信息,例如 API 返回的内容。
标签: javascript jquery django