帮忙取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,谢谢 Extjs的grid如何锁定列 关于scripts集合! 求助,要找一个在linux的firefox里运行,并能通过js来控制播放和停止的播放器。 求助一个CSS+JS的导航栏问题,在线等,即时结贴~~~~~~~~~~~~~~~~~~~ 加了滚动条后,div坐标定位问题? 请教:如何用js传值给另一个页面且本页面不改变? 请教csdn.net里面的问题! onclick事件设置div的visibility 如何判断一个窗口是网站的最后一个打开窗口? 急!求助 【请教】一个结构问题 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,谢谢