判断环境
Showing
3 changed files
with
5 additions
and
4 deletions
This diff is collapsed.
Click to expand it.
| ... | @@ -82,11 +82,15 @@ AppClient.prototype.getGPS = function (callbackName, callback, jsonStr) { | ... | @@ -82,11 +82,15 @@ AppClient.prototype.getGPS = function (callbackName, callback, jsonStr) { |
| 82 | // time: 10 | 82 | // time: 10 |
| 83 | // }); | 83 | // }); |
| 84 | // } | 84 | // } |
| 85 | var appClient = null; | 85 | var appClient = new AppClient(window.android, true); |
| 86 | layer.open({ | 86 | layer.open({ |
| 87 | content: window.android, | 87 | content: window.android, |
| 88 | time: 2 | 88 | time: 2 |
| 89 | }) | 89 | }) |
| 90 | layer.open({ | ||
| 91 | content: JSON.stringify(window) , | ||
| 92 | time: 2 | ||
| 93 | }) | ||
| 90 | if(window.android) { | 94 | if(window.android) { |
| 91 | appClient = new AppClient(window.android, true); | 95 | appClient = new AppClient(window.android, true); |
| 92 | // 此处可以调用一些init的方法 | 96 | // 此处可以调用一些init的方法 |
| ... | @@ -106,5 +110,3 @@ if(window.android) { | ... | @@ -106,5 +110,3 @@ if(window.android) { |
| 106 | // 此处可以调用一些init的方法 | 110 | // 此处可以调用一些init的方法 |
| 107 | }); | 111 | }); |
| 108 | } | 112 | } |
| 109 | |||
| 110 | ... | ... |
-
Please register or sign in to post a comment