vue3中input的value和绑定的ref存在不同的问题 #7793
Answered
by
chenxch
ANNNYG
asked this question in
Help/Questions
-
近期在开发中发现一个问题,input中使用:value与ref进行双向数据绑定时,存在限制ref的更改但input中的value却仍然发生改变的问题 |
Beta Was this translation helpful? Give feedback.
Answered by
chenxch
Feb 26, 2023
Replies: 2 comments 5 replies
-
在react中对数据进行双向绑定的时候,html的表现与value的值是相同的,在vue中这个表现让我有点感到奇怪🤔 |
Beta Was this translation helpful? Give feedback.
1 reply
-
你试一分别在2个输入框中输入的效果,然后在思考一下。 |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
ANNNYG
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
你试一分别在2个输入框中输入的效果,然后在思考一下。