本人菜鳥一只,關於這個參數提取的搞了很長時間,這個也是為了之后回顧使用
要提取截圖中的這個corpId的值寫法如下:
var jsonData = JSON.parse(responseBody)//序列化數據 //tests['團隊ID']=responseBody.has('corpId') var data = JSON.parse(jsonData.data)//由於data的數據是字符串形式的,所以需要轉換為json格式 if (data.length !==0){ pm.globals.set("corpId", data.userinfo.corpId);//設置變量名以及變量名對應的數據 }