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);