本文收录一个node package: dateformat 官网:https://github.com/zhangyaochun/node-dateformat安装: npm install dateformat 具体使用方式直接看官网吧