在 jquery 代码中使用 $(document).ready()时,位于其中的所有代码都会在 DOM 加载后立即执行
第一种(推荐)$(document).ready(function(){ alert("hi, lin3615");});第二种$().ready(function(){ alert("hi, lin3615");});第三种$(function(){ alert("hi, lin3615");});