postman 一些杂项记录

1、时间参数和时间的加减
代码:
var moment = require('moment');
var day = moment().add(0,'days');
var day1 = moment().add(3,'days');
var stamp = Date.parse(day);
var stamp1 = Date.parse(day1);
postman.setGlobalVariable("stamp",stamp);
postman.setGlobalVariable("stamp1",stamp1);
console.log(stamp);

posted on 2024-02-28 14:47  万能人  阅读(8)  评论(0编辑  收藏  举报

导航