Browse Source

Merge pull request #260 in ~GUY/fineui from ~WINDY/fineui:BI4.1 to BI4.1

* commit 'a9989e8fbed0da3be9052a45c9520f9afb532a83':
  方法修改
es6
windy 7 years ago
parent
commit
7c07210e37
  1. 9
      bi/core.js
  2. 9
      dist/bundle.js
  3. 8
      dist/bundle.min.js
  4. 9
      dist/core.js
  5. 9
      src/core/proto/date.js

9
bi/core.js

@ -21320,6 +21320,15 @@ Date.getDate = function () {
return dt;
}
};
Date.getTime = function () {
var dt = Function.prototype.bind.apply(Date.getDate, BI.concat([null], [].slice.apply(arguments)))();
if(BI.isNotNull(Date.timeZone)){
return dt.getTime() - Date.timeZone - dt.getTimezoneOffset() * 60000;
}else{
return dt.getTime();
}
};
/*
* 给jQuery.Event对象添加的工具方法
*/

9
dist/bundle.js vendored

@ -21320,6 +21320,15 @@ Date.getDate = function () {
return dt;
}
};
Date.getTime = function () {
var dt = Function.prototype.bind.apply(Date.getDate, BI.concat([null], [].slice.apply(arguments)))();
if(BI.isNotNull(Date.timeZone)){
return dt.getTime() - Date.timeZone - dt.getTimezoneOffset() * 60000;
}else{
return dt.getTime();
}
};
/*
* 给jQuery.Event对象添加的工具方法
*/

8
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

9
dist/core.js vendored

@ -21320,6 +21320,15 @@ Date.getDate = function () {
return dt;
}
};
Date.getTime = function () {
var dt = Function.prototype.bind.apply(Date.getDate, BI.concat([null], [].slice.apply(arguments)))();
if(BI.isNotNull(Date.timeZone)){
return dt.getTime() - Date.timeZone - dt.getTimezoneOffset() * 60000;
}else{
return dt.getTime();
}
};
/*
* 给jQuery.Event对象添加的工具方法
*/

9
src/core/proto/date.js

@ -568,3 +568,12 @@ Date.getDate = function () {
return dt;
}
};
Date.getTime = function () {
var dt = Function.prototype.bind.apply(Date.getDate, BI.concat([null], [].slice.apply(arguments)))();
if(BI.isNotNull(Date.timeZone)){
return dt.getTime() - Date.timeZone - dt.getTimezoneOffset() * 60000;
}else{
return dt.getTime();
}
};

Loading…
Cancel
Save