First commit.
This commit is contained in:
33
index.html
Normal file
33
index.html
Normal file
@@ -0,0 +1,33 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
|
||||
<style type="text/css">
|
||||
body, html,#allmap {width: 100%;height: 100%;overflow: hidden;margin:0;}
|
||||
</style>
|
||||
<script src="http://api.map.baidu.com/api?v=2.0&ak=FIWdfO6PROWOlG7UplZpGKBw"></script>
|
||||
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
|
||||
<title>上海艺术地图</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="allmap"></div>
|
||||
</body>
|
||||
</html>
|
||||
<script type="text/javascript">
|
||||
|
||||
// 百度地图API功能
|
||||
var map = new BMap.Map("allmap"); // 创建Map实例
|
||||
map.centerAndZoom("上海",15); // 初始化地图,设置中心点坐标和地图级别。
|
||||
|
||||
$.ajax({
|
||||
url: "https://api.douban.com/v2/event/list",
|
||||
})
|
||||
.done(function( response ){
|
||||
console.log("received", response);
|
||||
})
|
||||
.fail(function() {
|
||||
alert("error");
|
||||
});
|
||||
|
||||
</script>
|
||||
Reference in New Issue
Block a user