//获取楼宇位置并注册到地图
function getBuildingPositon(){
$.ajax({
type : "post",
async : false, //同步执行
url : ctx+"/fire/showLocation.do",
data : {},
dataType : "json", //返回数据形式为json
success : function(result) {
if (result) {
return result;
}
},
error : function() {
// alert("请求数据失败!");
}
});
}
ajax小例子
猜你喜欢
转载自my.oschina.net/u/2842177/blog/1604890
今日推荐
周排行