$(function(){...}); 的完整写法是:$(docunemt).ready(function(){...}); 转载于:https://blog.51cto.com/lailai/1688561