📌  相关文章
📜  如何检查窗口是否已加载 javascript 代码示例

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

代码示例1
function checkLoaded() {
  return document.readyState === "complete" || document.readyState === "interactive";
}
console.log(checkLoaded()) // true or false