我使用这段PHP代码在文本区域中显示数据库中的数据,然后在更新时,一旦用户单击文本区域,它就会更新数据库中的数据 var id = $(this).data('id'); // Get the id-data-attribute $.ajaxupdate_notice_board:"yes" });</
我对Ajax有问题,如何在不重新加载的情况下更新HTML页面上的信息。因此,我的views.py文件中有一个函数: some stuff some stuff return render(request, "header.html", context)
我只在我的header.html文件中使用{context}中的变量