WTForms如何生成<button>Button</button>按钮


官网上只有生成 <input type="submint" /> 这种形式,没有 <button type="submit">Submit</button> 这种形式

class wtforms.fields.SubmitField(default field arguments)
Represents an <input type="submit"> . This allows checking if a given submit button has been pressed.

python wtforms

4572918 12 years, 8 months ago

官方似乎没有提供,不过你可以自己定制。
http://wtforms.simplecodes.com/docs/1...
就拼接html即可。

wyg老婆 answered 12 years, 8 months ago

Your Answer