📌  相关文章
📜  document.addEventListener("load", function () { - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:02.993000             🧑  作者: Mango

代码示例1
window.addEventListener('load', (event) => {
  console.log('page is fully loaded');
});

window.onload = (event) => {
  console.log('page is fully loaded');
};