Type check for getElementById only works with optional chaining, not with type check

前端 未结 0 1920
甜味超标
甜味超标 2020-11-21 04:47

When trying to add a gradient to a line chart, I needed to get it\'s canvas. Before proceeding with the canvas I added a typecheck, however Vetur remarked that the "Obj

相关标签:
回答
  • 消灭零回复
提交回复
热议问题