【发布时间】:2012-04-26 08:39:35
【问题描述】:
所以我有这个 JSON
https://bitcoinpayflow.com/orders{"order":{"bitcoin_address":"1NwKSH1DJHhobCeuwxNqdMjK5oVEZBFWbk"}}
不,我想引用比特币地址
所以我先把开头的字符串去掉
var stripped = data.substring(33);
alert(stripped);
var btc = stripped.orders.bitcoin_address;
alert(btc);
我收到了第一个警报,但没有收到第二个。知道为什么吗?
【问题讨论】:
标签: javascript json map