This commit is contained in:
zuiidea
2016-12-12 23:36:59 +08:00
parent f0ca3f172c
commit ef61551341
8 changed files with 128 additions and 25 deletions
+6 -6
View File
@@ -9,12 +9,12 @@ const Weather = React.createClass({
this.fetch()
},
fetch() {
Ajax.getJSON("http://query.yahooapis.com/v1/public/yql", {
q: "select * from json where url=\"http://www.zuimeitianqi.com/zuimei/myCity?flg=0\"",
format: "json"
}, function (data) {
console.log(data)
})
// Ajax.getJSON("http://query.yahooapis.com/v1/public/yql", {
// q: "select * from json where url=\"http://www.zuimeitianqi.com/zuimei/myCity?flg=0\"",
// format: "json"
// }, function (data) {
// console.log(data)
// })
},
render() {
return <div className={styles.weather}>