Rumah > Soal Jawab > teks badan
有表单:
method = RadioField('method', choices=[(1,'GET'),(2,'POST')],default=1)
data = StringField('data')
如何根据RadioField 隐藏或者显示data,比如get时隐藏,post时显示
views中的index.html 使用flask-bootstrap,是直接{{ wtf.quick_form(form) }}
需要怎么改造?