You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
DS7/DSWeb/TruckMng/Scripts/ExtjsEx/exportexcel/export-all.js

41 lines
1.1 KiB
JavaScript

3 years ago
/**
* Created by IntelliJ IDEA.
* User: lanjs
* Date: 2012-03-12
* Time: <EFBFBD><EFBFBD><EFBFBD><EFBFBD>8:31
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ExtJS-Excel<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD><EFBFBD> .js <EFBFBD><EFBFBD><EFBFBD><EFBFBD> ExtJSģ<EFBFBD><EFBFBD>
*
* <EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><EFBFBD><EFBFBD>,<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ŀ¼<EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>޸<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>&<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϵ Button.js
*/
(function() {
var scripts = document.getElementsByTagName('script'),
host = window.location.hostname,
path, i, ln, scriptSrc, match;
for (i = 0,ln = scripts.length; i < ln; i++) {
scriptSrc = scripts[i].src;
match = scriptSrc.match(/export-all\.js$/);
if (match) {
path = scriptSrc.substring(0, scriptSrc.length - match[0].length);
break;
}
}
Ext.Loader.setConfig({ enabled: true });
Ext.Loader.setPath('Ext.ux.exporter', path + 'exporter');
Ext.require([
'Ext.grid.*',
'Ext.data.*',
'Ext.util.*',
'Ext.ux.exporter.Exporter'
]);
document.write('<script type="text/javascript" src="' + path + 'exporter/downloadify.min.js"></script>');
document.write('<script type="text/javascript" src="' + path + 'exporter/swfobject.js"></script>');
})();