设置日期变量

使用日期变量:

postman.setGlobalVariable('startDate',Date.parse(new Date("2022/11/25 00:00:00")));
postman.setGlobalVariable('endDate', Date.parse(new Date("2023/11/25 00:00:00")));
postman.setGlobalVariable('arriveDate', Date.parse(new Date("2022/12/25 00:00:00")));
在Postman中,通过`postman.setGlobalVariable`方法设置日期变量,如`startDate`,`endDate`和`arriveDate`,将特定日期(如2022年11月25日和2023年11月25日)转换为Unix时间戳存储。

5912

被折叠的 条评论
为什么被折叠?



