Skip to content

vue3中input的value和绑定的ref存在不同的问题 #7793

Answered by chenxch
ANNNYG asked this question in Help/Questions
Discussion options

You must be logged in to vote
<input :value="inputValue" />
<input v-model="inputValue" />

你试一分别在2个输入框中输入的效果,然后在思考一下。

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@yogwang
Comment options

Comment options

You must be logged in to vote
4 replies
@ANNNYG
Comment options

@chenxch
Comment options

@chenxch
Comment options

@ANNNYG
Comment options

Answer selected by ANNNYG
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants