$(function(){})是基础页面加载完成后运行的,还有几种方式是var get = function(){} 或者function get(){} 或者$("定位").click(function(){})
ready只能一次,onload可以很多次