如何通过jquery获取对象值?

时间:2016-01-06 12:00:51

标签: javascript jquery

拥有以下对象(来自回复)我想要检索值2016-01-06T00:00:00+05:30

{"success":true,"result":[{"0":"2016-01-06T00:00:00+05:30"},35]}

2 个答案:

答案 0 :(得分:3)

试试这个:



var obj = {"success":true,"result":[{"0":"2016-01-06T00:00:00+05:30"},35]};
alert(obj["result"][0]["0"]);




答案 1 :(得分:1)

尝试

permutation_index

https://jsfiddle.net/cpeLbuLu/