Update index.html
This commit is contained in:
@@ -21,13 +21,13 @@ var map = new BMap.Map("allmap"); // 创建Map实例
|
||||
map.centerAndZoom("上海",15); // 初始化地图,设置中心点坐标和地图级别。
|
||||
|
||||
$.ajax({
|
||||
url: "http://api.douban.com/event/location/shanghai",
|
||||
url: "http://api.douban.com/event/location/shanghai?type=exhibition&max-results=50",
|
||||
})
|
||||
.done(function( response ){
|
||||
console.log("received", response);
|
||||
})
|
||||
.fail(function() {
|
||||
alert("error");
|
||||
alert("无法访问豆瓣同城API!");
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user