angular学习 @ViewChild
@ViewChild('sliderIMG', { static: true }) sliderIMG: ElementRef
// 第二个值不知道是怎么用的
const imgList = this.sliderIMG.nativeElement.getElementsByTagName('li')
// 就和普通的操作dom一样,不知道这样用对不对
@ViewChild('sliderIMG', { static: true }) sliderIMG: ElementRef
// 第二个值不知道是怎么用的
const imgList = this.sliderIMG.nativeElement.getElementsByTagName('li')
// 就和普通的操作dom一样,不知道这样用对不对