1、 效果如下 使用前 使用后 2、下载moment npm install moment 2.1、导入 import moment from "moment"; 2.2、写入方法 2.3、写入表格中 最后保存后启动就能看到了