如图所示,为什么会报这样的错,解决方法除了以下两种写法,还有其他的吗,谢谢~
const cHeight: number = $event.target['clientHeight'];
const cWidth: number = ($event.target as any).cWidth;
如图所示,为什么会报这样的错,解决方法除了以下两种写法,还有其他的吗,谢谢~
const cHeight: number = $event.target['clientHeight'];
const cWidth: number = ($event.target as any).cWidth;
2 回答3.3k 阅读
1 回答974 阅读✓ 已解决