Permalink
Browse files

fix: setFmormat输入undefined造成bug

  • Loading branch information...
onvno committed Dec 27, 2016
1 parent 7aff523 commit e7bb1e35c65cf40574fc9c6ab9ee70b4ddc6b7e4
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/util/dateUtils.js
View
@@ -149,7 +149,7 @@ u.date = {
* @param formatString
*/
format: function(date, formatString, language) {
if(!date) return date;
if(!date) return ''; // renturn date 改为 return '',因:setFormat初始会赋值为undefined,造成二次选择报错
var array = formatString.match(u.date._formattingTokens),
i, length, output = '';
var _date = u.date.getDateObj(date);

0 comments on commit e7bb1e3

Please sign in to comment.