postman傳遞帶有日期格式的json字符串

可在Pre-request Script中書寫JavaScript代碼,最後經過調用postman的setGlobalVariable函數置入全局變量:postman.setGlobalVariable("now",Date.parse(new Date()));  這是毫秒數,傳到後臺編程系統默認的格式編程

相關文章
相關標籤/搜索