English 中文(简体)
ajax请求——如何阅读json obj
原标题:ajax request - how to read the json obj
  • 时间:2011-10-13 10:51:10
  •  标签:
  • ajax
  • json

我正在利用“雅克斯”请求,并收到“ j子”的答复。 i 如何读

[{"systemReviewInfoMapListSize":1,
"diagnosis":"Impaired hearing
Earache 
Ear noise",
"isClinicalSummaryAvail":"false","isSymptom":"true",
"isDiagnosis":"true",
"symptom":"Impaired hearing
Earache 
Ear noise",
"isSystemReviewInfo":"true"}]
问题回答

我假定,你会重新确定一种可变的对策?

如果是,你可以这样做:

var objJSON = ajax.response;

var systemReviewInfoMapListSize = objJSON.systemReviewInfoMapListSize;
var diagnosis = objJSON.diagnosis;
etc...

希望具有意义......基本上,你的麻风能反应使物体重现:价值。 你们在json内部获得价值,就像你会通过摄取对物体和投射器的变数来获取任何其他物体的特性。 PropertyName.

查询Here

我希望有人会澄清,为什么倒数,而不是说是这样,我总是看到,SO是一个社区,能够丰富我们对方案拟定的了解,而不是另一个密码存放处。





相关问题
ajax login using httpRequest?

I am trying to develop my login script to give feedback to the user if the login is valid or not. Basically if it isn t correct a div box will show saying its wrong, if its correct it will show its ...

Virtual Tour using sketch up, ajax, flash technologies

I want to know if there are existing technology that make your 3d models in sketch into virtual tours, using either Ajax or Flash for web presentation. If there s none, which will be a good approach ...

How can i update div continuously

I have asp.net application where i have a div which showing the value from other site. The value of that site is changing continuously. I want that my div will automatically update in some interval ...

热门标签