帮忙取Json 内容。谢谢 jsonjavascript 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 var o = { "word": "足球宝贝", "realword": "足球宝贝", "referQuery": [], "referWord": [], "listNum": 1000, "displayNum": 379131, "data": [{ "index": 0, "height": 250, "width": 400, "size": "24k", "type": "jpg", "tn": "http://i3.baidu.com/it/u=1650649321,1944125308&fm=21&gp=0.jpg", "objurl": "http://sports.sznews.com/images/attachement/jpg/site3/20080618/00188b8c06f709c2924855.jpg", "fromurl": "http://sports.sznews.com/content/2008-06/18/content_3047836_3.htm", "frompagetitle": "欧锦赛<strong>足球宝贝<\\/strong>挑逗摄影师", "fromurlhost": "sports.sznews.com", "thumburl": "http://i3.baidu.com/it/u=1650649321,1944125308&fm=21&gp=0.jpg", "hoverurl": "http://i3.baidu.com/it/u=1650649321,1944125308&fm=23&gp=0.jpg", "sign": "", "picurl": "http://wa1.baidu-1img.cn/timg?imagewise_detail&size=b320_480&quality=80&sec=1404290968&di=4d15c1d5cb9b5fc3ffbcfb704426ded2&chk=1&src=http://sports.sznews.com/images/attachement/jpg/site3/20080618/00188b8c06f709c2924855.jpg", "thumburl2": "http://i3.baidu.com/it/u=1650649321,1944125308&fm=23&gp=0.jpg" }, { "index": 1, "height": 544, "width": 454, "size": "32k", "type": "jpg", "tn": "http://i3.baidu.com/it/u=4084964884,1441997152&fm=21&gp=0.jpg", "objurl": "http://sports.sznews.com/images/attachement/jpg/site3/20110412/0021856022770f0e30cb3a.jpg", "fromurl": "http://sports.sznews.com/content/2011-04/12/content_5524658_7.htm", "frompagetitle": "制服<strong>足球宝贝<\\/strong>", "fromurlhost": "sports.sznews.com", "thumburl": "http://i3.baidu.com/it/u=4084964884,1441997152&fm=21&gp=0.jpg", "hoverurl": "http://i3.baidu.com/it/u=4084964884,1441997152&fm=23&gp=0.jpg", "sign": "", "picurl": "http://wa1.baidu-1img.cn/timg?imagewise_detail&size=b320_480&quality=80&sec=1404290968&di=6faed9cd01c2e9b701ca106da8b83a9b&chk=1&src=http://sports.sznews.com/images/attachement/jpg/site3/20110412/0021856022770f0e30cb3a.jpg", "thumburl2": "http://i3.baidu.com/it/u=4084964884,1441997152&fm=23&gp=0.jpg"}] }; var data = o.data;//////////// var html = ''; var i = 0, length = data.length, image; for (; i < length; i++) { image = data[i]; html += '<li>'; html += '<img src="' + image.picurl + '" width="200" height="' + Math.round(image.height / image.width * 200) + '">'; // Image title. html += '<p>' + image.frompagetitle + '</p>'; html += '</li>'; } 能不能FRO 直接取。里面取 data,谢谢 如何用JS来控制滚动条的滚动? 请问flash网页嵌入的2句可删吗 JavaScript可以结合jsp开发吗? 如何把Javascrpit中实现的树效果的"+"号去掉 如何实现鼠标放到滚动条下边的三角上滚动条自动下滑,让上边三角滚动条自动上滑? 一个HTML的问题 梅花雪姐姐,请教一个你写的TreeView组件的问题。 JS在服务器创建写入文件的问题??? 关于iframe之间的访问 如何实现这样的特效?有些菜,请帮助! 【请教】一个结构问题 js文件中如何创建下拉选框
var i = 0, length = data.length, image;
for (; i < length; i++) {
image = data[i];
html += '<li>'; html += '<img src="' + image.picurl + '" width="200" height="' + Math.round(image.height / image.width * 200) + '">'; // Image title.
html += '<p>' + image.frompagetitle + '</p>'; html += '</li>';
}
能不能FRO 直接取。里面取 data,谢谢