Quantcast
Channel: Desarrollo web – Outbook
Viewing all articles
Browse latest Browse all 17

Jquery: Plantilla base para construir un plugin

$
0
0
He aquí el código: (function($){ $.fn.XXXX = function(options){ var defaults = { // Opciones por defecto opcion1: '' ,opcion2: '' } var op = $.extend(defaults, options); return this.each(function(){ $(this).XXXX(); }); } })(jQuery);

Viewing all articles
Browse latest Browse all 17

Trending Articles