普通こう書く
jQuery(document).ready(function(){
alert("hoge");
});上記 $(document).ready() はショートカットを使うとこうなる。
jQuery(function(){
alert("hoge");
});で、jQuery(target) はそのエイリアス $(target) として書けるので
$(function(){
alert("hoge");
});でも良いってことか。
普通こう書く
jQuery(document).ready(function(){
alert("hoge");
});上記 $(document).ready() はショートカットを使うとこうなる。
jQuery(function(){
alert("hoge");
});で、jQuery(target) はそのエイリアス $(target) として書けるので
$(function(){
alert("hoge");
});でも良いってことか。