datatables/js/buttons.html51.js
(开头部分) 40KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/*!
* HTML5 export buttons for Buttons and DataTables.
* 2016 SpryMedia Ltd - datatables.net/license
*
* FileSaver.js (1.1.20160328) - MIT license
* Copyright © 2016 Eli Grey - http://eligrey.com
*/
var columlist = Array();
function columnClick(obj)
{
var $index = $.inArray($(obj).val(), columlist);
if($index != -1)
{
columlist.splice(jQuery.inArray($(obj).val(),columlist),1);
}
else{
columlist.push($(obj).val());
}
//alert(columlist);
}
(function( factory ){
if ( typeof define === 'function' && define.amd ) {
// AMD
define( ['jquery', 'datatables.net', 'datatables.net-buttons'], function ( $ ) {
return factory( $, window, document );
} );
}
else if ( typeof exports === 'object' ) {
// CommonJS
module.exports = function (root, $, jszip, pdfmake) {
if ( ! root ) {
root = window;
}
if ( ! $ || ! $.fn.dataTable ) {
$ = require('datatables.net')(root, $).$;
}
if ( ! $.fn.dataTable.Buttons ) {
require('datatables.net-buttons')(root, $);
}
return factory( $, root, root.document, jszip, pdfmake );
};
}
else {
// Browser
factory( jQuery, window, document );
}
}(function( $, window, document, jsZip, pdfMake, undefined ) {
'use strict';
var DataTable = $.fn.dataTable;
// Allow the constructor to pass in JSZip and PDFMake from external requires.
// Otherwise, use globally defined variables, if they are available.
if ( jsZip === undefined ) {
jsZip = window.JSZip;
}
if ( pdfMake === undefined ) {
后面还有 1390 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
