b2b4f299 by ex

添加提示

1 parent 765ab286
......@@ -91,8 +91,9 @@ AppClient.prototype.getGPS = function (jsonStr, callback) {
isRes = true
var latitude = ''
var longitude = ''
var str = JSON.stringify(data)
try {
var result = /\{([\s\S]*)\}/.exec(data);
var result = /\{([\s\S]*)\}/.exec(str);
var arr = result[1].split(',')
longitude = arr[0].split(':')[1]
latitude = arr[1].split(':')[1]
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!