86046fad by unknown

提示运行环境

1 parent 02c9b1a9
...@@ -15,7 +15,6 @@ function isJson(str) { ...@@ -15,7 +15,6 @@ function isJson(str) {
15 return true; 15 return true;
16 } 16 }
17 // var str = '{latitude:30.2741500000,longitude:120.1551500000}' 17 // var str = '{latitude:30.2741500000,longitude:120.1551500000}'
18 console.log(toJson(str))
19 function toJson(str) { 18 function toJson(str) {
20 try { 19 try {
21 if(str.length > 2){ 20 if(str.length > 2){
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!