6b4352fa by ex

h5

1 parent ec50b287
...@@ -5,7 +5,6 @@ function AppClient(appObj, isAndroid) { ...@@ -5,7 +5,6 @@ function AppClient(appObj, isAndroid) {
5 this.appObj = appObj; 5 this.appObj = appObj;
6 this.isAndroid = isAndroid; 6 this.isAndroid = isAndroid;
7 }; 7 };
8
9 function isJson(str) { 8 function isJson(str) {
10 try { 9 try {
11 JSON.parse(str); 10 JSON.parse(str);
...@@ -81,10 +80,10 @@ AppClient.prototype.getGPS = function (callbackName, callback, jsonStr) { ...@@ -81,10 +80,10 @@ AppClient.prototype.getGPS = function (callbackName, callback, jsonStr) {
81 // content: window.android, 80 // content: window.android,
82 // time: 2 81 // time: 2
83 // }) 82 // })
84 layer.open({ 83 // layer.open({
85 content: 'hah' , 84 // content: 'hah' ,
86 time: 2 85 // time: 2
87 }) 86 // })
88 // bridge.registerHandler('postGPS', function(data, responseCallback) { 87 // bridge.registerHandler('postGPS', function(data, responseCallback) {
89 // log('ObjC called testJavascriptHandler with', data) 88 // log('ObjC called testJavascriptHandler with', data)
90 // var responseData = { 'Javascript Says':'Right back atcha!' } 89 // var responseData = { 'Javascript Says':'Right back atcha!' }
......
...@@ -172,7 +172,7 @@ angular.module('myApp') ...@@ -172,7 +172,7 @@ angular.module('myApp')
172 // // responseCallback(responseData) 172 // // responseCallback(responseData)
173 // }) 173 // })
174 window.WebViewJavascriptBridge.callHandler('getGPS', '', function(res, responseCallback) { 174 window.WebViewJavascriptBridge.callHandler('getGPS', '', function(res, responseCallback) {
175 var res = JSON.parse(data) 175 var data = JSON.parse(res)
176 layer.open({ 176 layer.open({
177 content: data, 177 content: data,
178 time: 2 178 time: 2
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!