Discuss / JavaScript / 不知道这样算不算成功啊

不知道这样算不算成功啊

Topic source

刘Sirer

#1 Created at ... [Delete] [Delete and Lock User]
let i = '{"query":{"count":1,"created":"2017-08-18T11:23:17Z","lang":"zh-CN","results":{"channel":{"units":{"distance":"mi","pressure":"in","speed":"mph","temperature":"F"},"title":"Yahoo! Weather - Beijing, Beijing, CN","link":"http://us.rd.yahoo.com/dailynews/rss/weather/Country__Country/*https://weather.yahoo.com/country/state/city-2151330/","description":"Yahoo! Weather for Beijing, Beijing, CN","language":"en-us","lastBuildDate":"Fri, 18 Aug 2017 07:23 PM CST","ttl":"60","location":{"city":"Beijing","country":"China","region":" Beijing"},"wind":{"chill":"77","direction":"270","speed":"0"},"atmosphere":{"humidity":"86","pressure":"1004.0","rising":"0","visibility":"16.1"},"astronomy":{"sunrise":"5:29 am","sunset":"7:6 pm"},"image":{"title":"Yahoo! Weather","width":"142","height":"18","link":"http://weather.yahoo.com","url":"http://l.yimg.com/a/i/brand/purplelogo//uh/us/news-wea.gif"},"item":{"title":"Conditions for Beijing, Beijing, CN at 06:00 PM CST","lat":"39.90601","long":"116.387909","link":"http://us.rd.yahoo.com/dailynews/rss/weather/Country__Country/*https://weather.yahoo.com/country/state/city-2151330/","pubDate":"Fri, 18 Aug 2017 06:00 PM CST","condition":{"code":"39","date":"Fri, 18 Aug 2017 06:00 PM CST","temp":"76","text":"Scattered Showers"},"forecast":[{"code":"47","date":"18 Aug 2017","day":"Fri","high":"85","low":"71","text":"Scattered Thunderstorms"},{"code":"4","date":"19 Aug 2017","day":"Sat","high":"82","low":"72","text":"Thunderstorms"},{"code":"28","date":"20 Aug 2017","day":"Sun","high":"85","low":"72","text":"Mostly Cloudy"},{"code":"12","date":"21 Aug 2017","day":"Mon","high":"85","low":"73","text":"Rain"},{"code":"47","date":"22 Aug 2017","day":"Tue","high":"81","low":"73","text":"Scattered Thunderstorms"},{"code":"11","date":"23 Aug 2017","day":"Wed","high":"80","low":"73","text":"Showers"},{"code":"30","date":"24 Aug 2017","day":"Thu","high":"85","low":"70","text":"Partly Cloudy"},{"code":"30","date":"25 Aug 2017","day":"Fri","high":"82","low":"66","text":"Partly Cloudy"},{"code":"30","date":"26 Aug 2017","day":"Sat","high":"82","low":"65","text":"Partly Cloudy"},{"code":"30","date":"27 Aug 2017","day":"Sun","high":"81","low":"63","text":"Partly Cloudy"}],"description":"<![CDATA[<img src=\"http://l.yimg.com/a/i/us/we/52/39.gif\"/>\n<BR />\n<b>Current Conditions:</b>\n<BR />Scattered Showers\n<BR />\n<BR />\n<b>Forecast:</b>\n<BR /> Fri - Scattered Thunderstorms. High: 85Low: 71\n<BR /> Sat - Thunderstorms. High: 82Low: 72\n<BR /> Sun - Mostly Cloudy. High: 85Low: 72\n<BR /> Mon - Rain. High: 85Low: 73\n<BR /> Tue - Scattered Thunderstorms. High: 81Low: 73\n<BR />\n<BR />\n<a href=\"http://us.rd.yahoo.com/dailynews/rss/weather/Country__Country/*https://weather.yahoo.com/country/state/city-2151330/\">Full Forecast at Yahoo! Weather</a>\n<BR />\n<BR />\n<BR />\n]]>","guid":{"isPermaLink":"false"}}}}}}'
alert(JSON.parse(JSON.stringify(i)))

  • 1

Reply