mirror of
https://github.com/zuiidea/antd-admin
synced 2026-11-27 16:50:56 +00:00
get data
This commit is contained in:
@@ -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}>
|
||||
|
||||
Reference in New Issue
Block a user