Can we use “window.addEventListener” when we use DOMContentLoaded for JavaScript?

后端 未结 0 2063
伪装坚强ぢ
伪装坚强ぢ 2021-02-11 23:25

Some websites say that we have to use "document.addEventListener" when we use DOMContentLoaded.

However, "window.addEventListener(\'DOMContentLoaded\'...)&

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