Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
目前,我在我的 DJango/Python 项目中使用 jQuery/Select2。如何获取所有已选择的值?我试过form.cleaned_data['field']了,但我只得到一个值。请帮我。
form.cleaned_data['field']
在您看来,您可以简单地使用
数据 = request.POST.getlist("字段")