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

销毁实例 #12

Open
pzxie opened this issue Oct 30, 2017 · 0 comments
Open

销毁实例 #12

pzxie opened this issue Oct 30, 2017 · 0 comments

Comments

@pzxie
Copy link

pzxie commented Oct 30, 2017

我发现每次新建实例都是通过new 来实现,下次再创建的时候仍然是new一个新实例,但是实例从没有销毁过,导致每new一次都会生成一次节点,会造成很多垃圾dom。是不是可以添加一个destroy的方法,如果每次打开都是new的话,在cancel和ok的回调函数中,可以将刚刚生成的所有dom全部删除。

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