jQuery: come costruire un’estensione Plugin


/ Published in: JavaScript
Save to your folder(s)

jQuery Sketch Plugin


Copy this code and paste it in your HTML
  1. /**
  2.  * sketch jQuery Plugin
  3.  *
  4.  */
  5. (function($){
  6. $.fn.extend( {
  7. mymethod: function(options){
  8. var defaults = {};
  9. var options = $.extend(defaults, options);
  10. return this.each(function(){
  11. var __e = $(this);
  12. // todo
  13. // default options in "options"
  14. });
  15. }
  16. });
  17. })(jQuery);

URL: http://www.undolog.com/2008/09/23/jquery-come-costruire-unestensione-plugin/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.