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
React 获取 ref 的方法都有哪些?
The text was updated successfully, but these errors were encountered:
this.$ref.title //可以用于获取dom节点元素(对于html元素使用ref的情况,ref本身引用的就是该元素的实际dom节点) ReactDOM.findDOMNdoe(ref) // 可以获取挂载后的真正dom节点
以上,共两种
Sorry, something went wrong.
No branches or pull requests
The text was updated successfully, but these errors were encountered: