写了一段关于访问天气预报功能小代码
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<script type="text/javascript" src="jquery-1.10.2.min.js"></script>
<script type="text/javascript">
$(function(){
//alert('load....');
$.get('https://api.thinkpage.cn/v3/weather/now.json?key=pqco8hlgjeuvsdu3&location=beijing&language=zh-Hans&unit=c',function(data){
$.each(data.results,function(i,da){
alert('i:'+da.location.id+da.location.name);
});
});
});
</script>
<!--script type="text/javascript" src="https://api.thinkpage.cn/v3/weather/now.json?key=pqco8hlgjeuvsdu3&location=beijing&language=zh-Hans&unit=c"></<script-->
</head>
<body>
</body>
</html>