📜  jquery on ready - Javascript 代码示例

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

代码示例6
The .ready() method is typically used with an anonymous function:
$( document ).ready(function() {
  // Handler for .ready() called.
});

Which is equivalent to the recommended way of calling:
$(function() {
  // Handler for .ready() called.
});