765ab286 by ex

添加提示

1 parent fd64d9bb
......@@ -91,13 +91,18 @@ AppClient.prototype.getGPS = function (jsonStr, callback) {
isRes = true
var latitude = ''
var longitude = ''
try {
var result = /\{([\s\S]*)\}/.exec(data);
var arr = result[1].split(',')
longitude = arr[0].split(':')[1]
latitude = arr[1].split(':')[1]
} catch (e) {
layer.open({
content: JSON.stringify(longitude,latitude)
content: e
})
}
callback(latitude, longitude, responseCallback)
})
this.appObj.callHandler("getGPS", param, function (data, responseCallback) {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!