JS: Failed to execute 'getComputedStyle' on 'Window': parameter is not of type 'Element'

前端 未结 6 1777
北海茫月
北海茫月 2020-12-09 14:56

In short: I am trying to understand the meaning of this TypeError: Failed to execute \'getComputedStyle\' on \'Window\': parameter 1 is not of type \'Element\' The error app

6条回答
  •  独厮守ぢ
    2020-12-09 15:51

    The error message is pretty straightforward: getComputedStyle expects an Element as its first argument, and something else was passed to it.

    If what you are really asking for is help with debugging your skin, you should make more of an effort to isolate the error.

提交回复
热议问题