postman获取时间戳

//获取时间戳
var times = Date.now().toString()
//通过 var 定义变量,只有脚本可以使用

// 设置一个 postman中可以使用的变量
pm.collectionVariables.set("username", times);
posted @ 2022-02-04 18:40  康kang  阅读(1492)  评论(0)    收藏  举报