Một trang không thể được chế tác một cách an toàn cho đến khi tài liệu là "sẵn sàng". jQuery phát hiện nhà nước này sẵn sàng cho bạn. Mã bao gồm bên trong $ (document) .ready () sẽ chỉ chạy một lần Object Model Document trang (DOM) đã sẵn sàng cho các mã JavaScript để thực thi. Mã bao gồm bên trong $ (window) .load (function () {...}) sẽ chạy một lần toàn bộ trang (hình ảnh hoặc iframe), không chỉ các DOM, đã sẵn sàng.
đang được dịch, vui lòng đợi..