Update index.html

This commit is contained in:
Vinjn Zhang
2014-05-11 12:43:05 +08:00
parent 46fb9f4497
commit 0f88f81beb

View File

@@ -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>