Skip to content
New issue

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

记得销毁 #7

Open
zch233 opened this issue Apr 28, 2020 · 0 comments
Open

记得销毁 #7

zch233 opened this issue Apr 28, 2020 · 0 comments

Comments

@zch233
Copy link

zch233 commented Apr 28, 2020

attachToDocument
类型:boolean
默认值:false
当设为 true 时,组件在渲染时将会挂载到 DOM 上。

如果添加到了 DOM 上,你应该在测试的最后调用 wrapper.destroy() 将元素从文档中移除并销毁组件实例。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant