Skip to content

Instantly share code, notes, and snippets.

@s-hiroshi
Created July 11, 2012 00:35
Show Gist options
  • Select an option

  • Save s-hiroshi/3087150 to your computer and use it in GitHub Desktop.

Select an option

Save s-hiroshi/3087150 to your computer and use it in GitHub Desktop.
jQuery > utility halfway
jQuery(function ($) {
// 拡張用の名前空間
var Util = {};
// jQueryの拡張
jQuery.extend({'util': Util});
// 静的メソッドの追加
Util.hoge = function () {
};
// その他の処理
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment