第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

json遍歷

json遍歷

三國紛爭 2019-04-09 20:25:41
js有點不熟,弄了半天還弄不好!求大神們JsonCallBack({"retcode":"0","uin":"0","total":"10","start":"-1","songs":[{"id":"0","data":"http://xxx.xxx.cn/zorro.mp3|用戶|http://xxx.xxx.cn/zorro.gif|類別|http://xxx.xxx.cn/zorro.gif|標(biāo)題http://xxx.xxx.cn/zorro.gif|271|1|0|0|10791177|0|320000|0|29298365|30294145|6185642","url":"http://xxx.xxx.cn/zorro.mp3"}]})要輸出{url:"http://xxx.xxx.cn/zorro.mp3",pic:"http://xxx.xxx.cn/zorro.gif",cat:"類別",title:"標(biāo)題"}
查看完整描述

2 回答

?
Helenr

TA貢獻1780條經(jīng)驗 獲得超4個贊

這是jsonp吧,在回調(diào)函數(shù)里頭直接按照對象的格式讀取就好了。
function(response){
varinfomation=response.songs.data.split('|');
result={
url:response.songs.url,
pic:infomation[2],
cat:infomation[3],
title:infomation[5].replace(infomation[2],'')
}
}
result就是你想要的結(jié)果了。
                            
查看完整回答
反對 回復(fù) 2019-04-09
  • 2 回答
  • 0 關(guān)注
  • 653 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號