天气接口,get 请求, 参数 city 为全国各城市名称,返回最近一周天气情况
http://wthrcdn.etouch.cn/weather_mini?city=上海市
常用ajax 模版
$.ajax({
type:"post",
url: "http://192.168.2.11:8081/womenday/info/save", //填写接口地址
contentType:'application/json',
data:JSON.stringify({
name: name,
no: no,
}),
success: function(data){
console.log(data)
}
});
请到客户端“主题--自定义配置--valine”中填入ID和KEY