官网上只有生成 <input type="submint" /> 这种形式,没有 <button type="submit">Submit</button> 这种形式
classwtforms.fields.SubmitField(default field arguments)
Represents an<input type="submit">. This allows checking if a given submit button has been pressed.
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
官方似乎没有提供,不过你可以自己定制。
http://wtforms.simplecodes.com/docs/1...
就拼接html即可。