We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
我现在的项目中用的是formatter@0.1.2。 现在的情况是这样的。如果date == undefined, 那么 Formatter.date(date, 'YYYY-MM-DD')的结果就是NaN-aN-aN。我希望在formatter的时候判断一下异常值,如果是异常值的话就返回空字符串。能报一下console.warn就更好啦
date == undefined
Formatter.date(date, 'YYYY-MM-DD')
NaN-aN-aN
formatter
console.warn
The text was updated successfully, but these errors were encountered:
fix issue #4
bc141de
No branches or pull requests
我现在的项目中用的是formatter@0.1.2。 现在的情况是这样的。如果
date == undefined
, 那么Formatter.date(date, 'YYYY-MM-DD')
的结果就是NaN-aN-aN
。我希望在formatter
的时候判断一下异常值,如果是异常值的话就返回空字符串。能报一下console.warn
就更好啦The text was updated successfully, but these errors were encountered: