jQuery の ready() メモ
2011年3月28日 13:03
普通こう書く
jQuery(document).ready(function(){
alert("hoge");
});上記 $(document).ready() はショートカットを使うとこうなる。
jQuery(function(){
alert("hoge");
});で、jQuery(target) はそのエイリアス $(target) として書けるので
$(function(){
alert("hoge");
});でも良いってことか。
カテゴリー: programming
Leave a comment
コメントはまだありません
No comments yet.