JQuery-Ajaxは異常ステップで天気予報の取得を要求しています。
4298 ワード
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>JQuery-Ajax</title>
<!-- 5 -->
<script src="js/jquery.min.js"></script>
<script>
$(function () {
$.ajax({
url: "http://wthrcdn.etouch.cn/weather_mini?city= ",
type:"get",
dateType: "json",
error: function () {
alert(" , !")
},
success: function (date) {
alert(date);
}
});
});
</script>
</head>
<body>
</body>
</html>