1.Pre-request Script下配置時(shí)間格式:
postman.setGlobalVariable("maxBehotTime",Date.parse(new Date("2021/06/12 00:00:10")));
postman.setGlobalVariable("minBehotTime",Date.parse(new Date("2020/06/12 23:59:10")));
2.body — json參數(shù)設(shè)置,在這里引用上邊定義的時(shí)間格式:文章來源:http://www.zghlxwxcb.cn/news/detail-701108.html
{
"maxBehotTime": {{maxBehotTime}},
"minBehotTime": {{minBehotTime}},
"size": 8,
"tag": ""
}
文章來源地址http://www.zghlxwxcb.cn/news/detail-701108.html
到了這里,關(guān)于Postman中POST請求傳遞date類型參數(shù)的文章就介紹完了。如果您還想了解更多內(nèi)容,請?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!