Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
测试用例中对双向绑定的测试仅测试了初始化阶段
ref
修改时<input/>
文本框内容的变化,而如果在初始化之后主动修改ref
的值,没有实现向<input/>
的双向绑定的话,仍然会通过测试用例,因此补充一个初始化之后两秒主动修改ref
的测试用例举例,当前测试用例中,以下的代码可以通过:
但是两秒后,只有下方
<p></p>
标签中的值变为Hello World!!!
,但是<input/>
文本框内容没有变化,实际上并未完全实现双向绑定。