📜  文档就绪 js - Javascript 代码示例

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

代码示例6
// A document ready block with JQery.
$( document ).ready(function() {
    // we ready for fire action with JQery.
});


// A document ready block with javascript.
document.addEventListener("DOMContentLoaded", function(event) { 
  // we ready for fire action with javascript.
});