什么是JSON?怎么用JSON 格式订阅这些xml 20
求高手回答:WhatisJSON?TrytouseJSONformattosubscribethefollowingXMLdata..XML:<songlist><son...
求高手回答:
What is JSON? Try to use JSON format to subscribe the following XML data..
XML:
<songlist>
<song>
<title>Reason to Cry</title>
<Album>Extreme</Album>
<Artist>Lucinda Williams</Artist>
</song>
<song>
<title>Across the Universe</title>
<Album>Let It be</Album>
<Artist>John Lennon</Artist>
<Artist>Paul McCartney</Artist>
<Artist>George Harrison</Artist>
<Artist>Ringo Starr</Artist>
</song>
</songlist>
Try to use JSON format to subscribe the following XML data 这句话怎么翻译 展开
What is JSON? Try to use JSON format to subscribe the following XML data..
XML:
<songlist>
<song>
<title>Reason to Cry</title>
<Album>Extreme</Album>
<Artist>Lucinda Williams</Artist>
</song>
<song>
<title>Across the Universe</title>
<Album>Let It be</Album>
<Artist>John Lennon</Artist>
<Artist>Paul McCartney</Artist>
<Artist>George Harrison</Artist>
<Artist>Ringo Starr</Artist>
</song>
</songlist>
Try to use JSON format to subscribe the following XML data 这句话怎么翻译 展开
展开全部
json...因为比较短,而且处理起来比较清晰....是处理ajax等方面xml的替代....json是js..不是xml...更和xml订阅扯不上边....
用json格式描述下列xml
var songlist=[{"title":"Reason to Cry","Album":"Extreme","Artist":"Lucinda Williams"},{"title":"Across the Universe","Album":"Let It be","Artist":["John Lennon","Paul McCartney","George Harrison","Ringo Starr"]}]
应该就是这样吧
用json格式描述下列xml
var songlist=[{"title":"Reason to Cry","Album":"Extreme","Artist":"Lucinda Williams"},{"title":"Across the Universe","Album":"Let It be","Artist":["John Lennon","Paul McCartney","George Harrison","Ringo Starr"]}]
应该就是这样吧
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
{
"songlist":{
"song":[
{"title":"Reason to Cry","Album":"Extreme","Artist":"Lucinda Williams"},
{"title":"Across the Universe","Album":"Let It be","Artist":["John Lennon","Paul McCartney","George Harrison","Ringo Starr"]}
]
}
}
可以建个html文档测试一下
<script>
var a={"songlist":{"song":[{"title":"Reason to Cry","Album":"Extreme","Artist":"Lucinda Williams"},{"title":"Across the Universe","Album":"Let It be","Artist":["John Lennon","Paul McCartney","George Harrison","Ringo Starr"]}]}};
alert(a["songlist"]["song"][1]["Artist"][0]);
</script>
"songlist":{
"song":[
{"title":"Reason to Cry","Album":"Extreme","Artist":"Lucinda Williams"},
{"title":"Across the Universe","Album":"Let It be","Artist":["John Lennon","Paul McCartney","George Harrison","Ringo Starr"]}
]
}
}
可以建个html文档测试一下
<script>
var a={"songlist":{"song":[{"title":"Reason to Cry","Album":"Extreme","Artist":"Lucinda Williams"},{"title":"Across the Universe","Album":"Let It be","Artist":["John Lennon","Paul McCartney","George Harrison","Ringo Starr"]}]}};
alert(a["songlist"]["song"][1]["Artist"][0]);
</script>
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询