我有一个天气小部件,需要动态背景。雅虎有天气API,但我无法找到与天气类型相关联的背景图片。https://weather.yahoo.com/这可行吗?
var url = 'http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20location%3D%2248907%22&format=json'
$.getJSON(url, function (data) {
console.log(data)
})