我这样做了:
var jsonData = JSON.parse(responseBody);
var freeMem = '';
tests["Status code is 200"] = responseCode.code === 200;
console.log(`API response:\n${responseBody}`);
var jsonItems = jsonData.commands;
_.each(jsonItems, function(var1) {
if (var1.stdout !== undefined) {
freeMem = `${var1.stdout}`;
console.log(`API:\n${freeMem}`);
}
});
现在从这个值我想存储使用的Mem的值,即16150343680和总Mem,即33569480704。
如何获得此值