$(document).ready(function(){
alert("第一种方法。");
});
$(function(){
alert("第二种方法。");
});
jQuery(function($) {
alert("第三种方法。");
});
$(document).ready(function(){
alert("第一种方法。");
});
$(function(){
alert("第二种方法。");
});
jQuery(function($) {
alert("第三种方法。");
});
转载于:https://www.cnblogs.com/linson0116/p/4589446.html