页面加载完闭后执行 $(cocument).ready(function(){ alert("Hello World!" ); }); 简写为 $(function)(){ alert("..."); }