"{"formData":"","processStatus":"1","submitTime":"2020-09-03 17:31:39","submitResult": "1","remark":"测试流程终止备注信息"}"如何取出submitResult的值
时间: 2024-01-31 19:04:22 浏览: 43
您可以使用JSON.parse()方法将JSON字符串转换为JavaScript对象,然后通过对象的属性名来获取submitResult的值。以下是一个示例代码:
```javascript
var jsonStr = '{"formData":"","processStatus":"1","submitTime":"2020-09-03 17:31:39","submitResult": "1","remark":"测试流程终止备注信息"}';
var jsonObj = JSON.parse(jsonStr);
var submitResult = jsonObj.submitResult;
console.log(submitResult); // 输出:1
```
阅读全文