//获取楼宇位置并注册到地图
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小例子
最新推荐文章于 2025-12-04 23:20:36 发布
本文介绍了一个用于获取楼宇位置并通过同步Ajax请求将其注册到地图显示的功能。该功能通过post方式调用特定的服务接口,并期望返回JSON格式的数据。
1218

被折叠的 条评论
为什么被折叠?



