currently encapsulated table plug-ins are as follows:
(function ($) {
function Table() {
this.config = {
//
}
};
Table.prototype = {
//table
rend: function (config) {
return this;
}
};
window.Table = Table;
}(jQuery));
plugin call method:
var abc = new Table();
abc.rend({
ele:"-sharptable1"
});
question: there are some functions that belong to rend customization that I want to write into HyTable.prototype "s rend, but will this result in a closure? Will it cause a memory leak if there are too many functions defined? Or is there a better way?