您的位置:首页 > 其它

插件规范定义

2014-08-28 10:43 120 查看
/*
* Support for AMD, CMD
*/

;(function( window, document, undefined ) {

(function( factory ) {
"use strict";

if ( typeof define === 'function' && define.amd ) {
// Define as an AMD module if possible
define( 'Ctable', ['jquery'], factory );
}
else if ( typeof exports === 'object' ) {
// Node/CommonJS
factory( require( 'jquery' ) );
}
else if ( jQuery && !jQuery.fn.Ctable ) {
// Define using browser globals otherwise
// Prevent multiple instantiations if the script is loaded twice
factory( jQuery );
}
}
(function( $ ) {

$.fn.Ctable = function (opts) {
this.each(function (opts) {

});
}

}));

}(window, document));
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: