“DocumentReady” Kod odpowiedzi

Dokument Ready JQuery

// A $( document ).ready() block.
$( document ).ready(function() {
    console.log( "ready!" );
});
Xerothermic Xenomorph

Dokument gotowy JS

document.addEventListener("DOMContentLoaded", function(event) { 
  //we ready baby
});
Grepper

DocumentReady

// A $( document ).ready() block.
$( document ).ready(function() {
    console.log( "ready!" );
});
Lonely Lemur

Przeglądaj popularne odpowiedzi na kod według języka

Przeglądaj inne języki kodu