2009-09-14から1日間の記事一覧

memo:jQueryプラグインの作り方

js

http://www.goodpic.com/mt/archives2/2007/11/jquery.html から。 メソッドチェーンをしないjQueryは逆に混乱を招くので return thisは必須だとおもふ。 //jQueryの関数を定義 (function(){ jQuery.fn.MyPluginName = function(config){ //引数の処理部 con…