我想更改用wtforms(在烧瓶中(创建的textArea的内容。我该怎么做?我用这种方式更改了文本字段的内容
{{ form.title(value="this is the value") }}
但它不适用于文本区域字段
对不起,我英语说得不太好,但我希望我能通过明白我的意思
不可能。
如果您想更改字段数据,请在代码中进行更改
form.title.data = "this is the value"
或者在表单定义中设置一些值
class MyForm():
title = StringField(widget=TextArea(), default="this is the value")