第一种: $(document).ready(function() { // jQuery 代码.... }) 第二种: $(function(){ // jQuery 代码..... }); 相关文章: