We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No description provided.
The text was updated successfully, but these errors were encountered:
defaultVaue
value
在表单中, 使用defaultValue, 用于为表单元素绑定一个初始值, 这个初始值在最开始的时候会被渲染金表单当中, 但是在之后这个值的来源值有所变化的话, 表单元素不会更新, 也就是说这个值只会在初始化的时候起作用。
defaultValue
使用value的话, 则可以对表单元素进行值同步。 需要注意的是, 如果使用 value属性, 则必须要为表单元素添加onChange的事件处理函数。表单元素的值的改变将会由它的事件处理函数来决定。 如果这个事件函数什么都不处理, 那么用户在表单元素中进行输入的时候, 将不会看到交互效果(也就是用户输入了, 但是值并没有改变)。
onChange
参考:
Sorry, something went wrong.
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: