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
<input #user type='text'> <button (click)='onClick(user.value)' ></button>
我们在input标签里面加了一个#user,这个叫做引用。 它引用的是input对象,那么我们用#user.value则获取到了input里面的值。
input
#user
#user.value
The text was updated successfully, but these errors were encountered:
No branches or pull requests
引用dom节点 -- #refName
我们在
input
标签里面加了一个#user
,这个叫做引用。它引用的是
input
对象,那么我们用#user.value
则获取到了input
里面的值。The text was updated successfully, but these errors were encountered: