在我的主干代码中,我将返回值传递给一个变量,现在我必须使用该变量访问一个特定的值。
以下是服务器返回的值
Object {
readyState = 4,
responseText = '{"analysis":{"created_a...s"],"status":"active"}}',
status = 201,
more...
}
这就是我在控制台中获得上述结果的方式
attributes = {
locale: $action.find('#locale').val(),
title: $action.find('#title').val(),
category: $action.find('#category').val(),
status: $action.find('#analysis_status').val(),
matrix: $action.find('#analysis_matrix').val(),
predefined_barriers: barrierTexts,
features: featureTexts
}
b = this.model.save(attributes);
我想要的是访问responseText
我如何使用变量访问它,b
或者有没有其他好的方法可以做到这一点
谢谢