$(document).ready(function(){}) 是若名函数,document,可以不写,可以写成这样$(function(){}) function(){}里定义的都是保护的东东,外面无法调用,但可以调外面的
$.方法 就可以啊