Document
*{
margin: 0;
padding: 0;
}
li{
list-style: none;
margin-bottom: 20px
}
h4{
font-size: 20px;
font-weight: normal;
}
.info{
font-size: 12px;
color: #888;
padding:5px 0
}
.info > span{
padding-right:5px
}
img{
width: 100%;
}
.desc{
color: #333;
font-size: 16px
}
var data=json.showapi_res_body.pagebean.contentlist
console.log(data)
var html=""
for(var i=0;i
html+=`
${data[i].title}
${data[i].source}
${data[i].channelName}
${data[i].pubDate}
if(data[i].havePic){
html+= ``
}
if(data[i].desc){
html+= `
${data[i].desc}
`}
html+= ``
}
$("#list").html(html)
一键复制
编辑
Web IDE
原始数据
按行查看
历史