$function(){} 在页面DOM文档加载完成后加载执行的,等效于$(document).ready(function(){}) 转载于:https://www.cnblogs.com/JerryFly/p/10319783.html