5154ffd5 by ex

判断环境

1 parent 76bc44e1
...@@ -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
......
wechat @ efa7b46b
1 Subproject commit efa7b46b5ba06587588536145356c18345036f63
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!