Argument of type '(Node & ParentNode) | null' is not assignable to parameter of type 'Element'. Type 'null' is not assignable to type 'Element'

前端 未结 0 997
名媛妹妹
名媛妹妹 2021-02-20 11:30

I try to pass a parentNode of a node to my getStyleComputedProperty function.

But got an error:

Argument of type \'(Node &am

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