let child: HTMLElement = allChildren[i] as HTMLElement;在別人代碼中看到這一段 能解釋一下as的作用嗎?并求js實現as的方法
typescript中的as
江戶川亂折騰
2019-01-05 15:14:30