0
我JSON陣列,請幫我從這個數組Json從數組中獲取屬性?
{
"RAW":{
"BTC":{
"USD":{
"TYPE":"5",
"FROMSYMBOL":"BTC",
"TOSYMBOL":"USD",
"FLAGS":"2",
"PRICE":1082.13,
"LASTUPDATE":1483529467,
"LASTVOLUME":2.31159402,
"LASTVOLUMETO":2496.5215415999996,
"LASTTRADEID":12826318,
"VOLUME24HOUR":72040.63471484324,
"VOLUME24HOURTO":75043516.07861365,
"OPEN24HOUR":1020.95,
"HIGH24HOUR":1097.54,
"LOW24HOUR":980,
}
我寫這篇文章的代碼得到的價格,但它不工作,哪裏是錯
function getRate() {
$.getJSON("https://min-api.cryptocompare.com/data/pricemultifull?fsyms=BTC&tsyms=USD")
.done(function (data) {
if (data) {
$('.price').html(data.PRICE)
}
});
}
getRate();
TNX答案!