angular2如何引入并使用ztree呢
基本步骤如下:
1.在html文件中引入jquery库文件和ztree文件
2. 重写angular2组件的ngAfterViewInit()方法,在其中调用ztree方法
关于ngAfterViewInit,参考:http://a2.hubwiz.com/docs/ts/latest/api/core/AfterViewInit-interface.html