有表单:
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) }}
需要怎么改造?
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
这个你可以在前端使用 js 控制的啊。
这个只能JS控制,属于前端的