Comparing version 0.3.11 to 0.3.12
@@ -62,2 +62,6 @@ | ||
- [enhancement] client jquery -> $ | ||
- [bugfix] client uploadBase64 | ||
- [bugfix] client uploadBase64 | ||
0.3.12 | ||
================== | ||
- [feature] add febs.utils.getDate2 |
@@ -47,3 +47,3 @@ { | ||
"name": "febs", | ||
"version": "0.3.11" | ||
"version": "0.3.12" | ||
} |
@@ -136,2 +136,7 @@ febs 库是一些常用的工具的合集; | ||
febs.utils.getDate(strDate) | ||
/** | ||
* @desc: getDate2('20120509') | ||
* @return: Date. | ||
*/ | ||
febs.utils.getDate2(strDate) | ||
``` | ||
@@ -138,0 +143,0 @@ ```js |
@@ -107,3 +107,3 @@ 'use strict'; | ||
*/ | ||
exports.getTimeString = function getTimeString(time, fmt, weekFmt) | ||
function getTimeString(time, fmt, weekFmt) | ||
{ | ||
@@ -148,2 +148,3 @@ if (typeof time !== "number") | ||
}; | ||
exports.getTimeString = getTimeString; | ||
@@ -235,2 +236,15 @@ | ||
/** | ||
* @desc: getDate2('20120509') | ||
* @return: Date. | ||
*/ | ||
exports.getDate2 = function(strDate) { | ||
var date = eval('new Date(' | ||
+ strDate.substr(0, 4) + ',' | ||
+ parseInt(strDate.substr(4, 2), 10)-1 + ',' | ||
+ strDate.substr(6, 2) + ')'); | ||
return date; | ||
} | ||
/** | ||
* @desc: 合并多个map. | ||
@@ -237,0 +251,0 @@ * @return: {} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
690116
7555
749
6