|
楼主 |
发表于 2018-8-9 17:44:17
|
显示全部楼层
本帖最后由 checkenMan 于 2018-8-9 17:48 编辑
http://192.168.1.47:8080/baas/bmap/Api/convertLocation
这是url路径,action在Api.java文件下
然后报错:
{"status":24,"message":"param error:coords format error"}
这是ajax参数:
var valuejson = {"latitude":"I want","longitude":"rest by a month!"};
debugger;
$.ajax({
"type" : "post",
"async" : false,
"dataType" : "jsonp",
"contentType" : "application/json",
"url" : "http://192.168.1.47:8080/baas/bmap/Api/convertLocation",
"data" : JSON.stringify(valuejson),
"complete" : function(xhr) {
if (xhr.readyState == 4 && xhr.status == 200) {
} else {
}
}
});
|
|