123456789101112131415161718192021222324252627282930313233343536373839 |
- function isEmpty(obj){
- if(typeof obj == "undefined" || obj == null || obj == ""){
- return true;
- }else{
- return false;
- }
- }
- function dc() {
- var title = $("#title").text();
- var year = $("#year").val() ;
- var myDate = new Date();
-
- alert(countdown()+year+"_"+title);
- $("#add").tableExport({fileName: countdown()+year+"_"+title,type:"xlsx",escape:"false"});
-
- }
- function countdown() {
- var myDate = new Date();
-
- var year=myDate.getFullYear();
-
- var month=myDate.getMonth()+1;
-
- var date=myDate.getDate();
- var h=myDate.getHours();
- var m=myDate.getMinutes();
- var s=myDate.getSeconds();
- var now=year+getNow(month)+getNow(date)+getNow(h)+getNow(m)+getNow(s);
-
-
- return now;
- }
- function getNow(s) {
- return s < 10 ? '0' + s: s;
- }
|