根据城市名获取 城市天气
请求地址:http://wthrcdn.etouch.cn/weather_mini
请求方法:Ajax
请求参数:city
相应内容:json
<style>
li {
width: 200px;
height: 200px;
background-color: #999;
text-align: center;
float: left;
margin-right: 20px;
list-style: none;
}
li span {
display: block;
margin: 10px auto;
}
</style>
</head>
<body>
<input type="text" placeholder="请输入查询的城市" id="city">
<button id="btn">查询天气</button>
<br>
城市名称:<span id="cityname"></span>
<hr>
<ul id=