如何在我的html/jquery中使用upload_response來檢查它是否爲真,並相應地顯示一些文本而無需轉到新頁面?django ajax上下文
fileupload.py文件:
template = loader.get_template('start_interview.html')
context = Context({ 'upload_response': 'True'})
return HttpResponse(template.render(context))
你是什麼意思{無需進入新的頁面} –
就像在同一頁內的AJAX評論,而不是去到一個新的URL /新頁 – user1678031
更新了答案。那是你在找什麼? –