不出意外,最起码你应该能想到用ngIf来控制组件显示与否, ... 而动态创建Component通过ViewChild方式获取ViewContainerRef,不管哪种方法,选择适合 ...
確定! 回上一頁