b2b4f299 by ex

添加提示

1 parent 765ab286
...@@ -91,8 +91,9 @@ AppClient.prototype.getGPS = function (jsonStr, callback) { ...@@ -91,8 +91,9 @@ AppClient.prototype.getGPS = function (jsonStr, callback) {
91 isRes = true 91 isRes = true
92 var latitude = '' 92 var latitude = ''
93 var longitude = '' 93 var longitude = ''
94 var str = JSON.stringify(data)
94 try { 95 try {
95 var result = /\{([\s\S]*)\}/.exec(data); 96 var result = /\{([\s\S]*)\}/.exec(str);
96 var arr = result[1].split(',') 97 var arr = result[1].split(',')
97 longitude = arr[0].split(':')[1] 98 longitude = arr[0].split(':')[1]
98 latitude = arr[1].split(':')[1] 99 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!