提示运行环境
Showing
1 changed file
with
2 additions
and
2 deletions
| ... | @@ -15,7 +15,7 @@ function isJson(str) { | ... | @@ -15,7 +15,7 @@ function isJson(str) { |
| 15 | return true; | 15 | return true; |
| 16 | } | 16 | } |
| 17 | function toJson(str) { | 17 | function toJson(str) { |
| 18 | var i = str.index('{') | 18 | var i = str.index('{')git |
| 19 | try { | 19 | try { |
| 20 | var arr = str.split(2,str.length - 4) | 20 | var arr = str.split(2,str.length - 4) |
| 21 | console.log(arr) | 21 | console.log(arr) |
| ... | @@ -96,7 +96,7 @@ if(isAndroid || isiOS) { | ... | @@ -96,7 +96,7 @@ if(isAndroid || isiOS) { |
| 96 | if(isAndroid) { | 96 | if(isAndroid) { |
| 97 | appClient = new AppClient(window.WebViewJavascriptBridge, true); | 97 | appClient = new AppClient(window.WebViewJavascriptBridge, true); |
| 98 | layer.open({ | 98 | layer.open({ |
| 99 | content: JSON.parse(JSON.stringify(appClient)), | 99 | content: JSON.stringify(appClient), |
| 100 | time: 2 | 100 | time: 2 |
| 101 | }) | 101 | }) |
| 102 | bridge.init(function (message, responseCallback) { | 102 | bridge.init(function (message, responseCallback) { | ... | ... |
-
Please register or sign in to post a comment