解决方案 »

  1.   

        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>';
         }
      

  2.   


    能不能FRO 直接取。里面取 data,谢谢