JS类的闭包写法 https://my.oschina.net/somereasons/blog/912004

先看看怎么使用

讲解