6b4352fa by ex

h5

1 parent ec50b287
......@@ -5,7 +5,6 @@ function AppClient(appObj, isAndroid) {
this.appObj = appObj;
this.isAndroid = isAndroid;
};
function isJson(str) {
try {
JSON.parse(str);
......@@ -81,10 +80,10 @@ AppClient.prototype.getGPS = function (callbackName, callback, jsonStr) {
// content: window.android,
// time: 2
// })
layer.open({
content: 'hah' ,
time: 2
})
// layer.open({
// content: 'hah' ,
// time: 2
// })
// bridge.registerHandler('postGPS', function(data, responseCallback) {
// log('ObjC called testJavascriptHandler with', data)
// var responseData = { 'Javascript Says':'Right back atcha!' }
......
......@@ -172,7 +172,7 @@ angular.module('myApp')
// // responseCallback(responseData)
// })
window.WebViewJavascriptBridge.callHandler('getGPS', '', function(res, responseCallback) {
var res = JSON.parse(data)
var data = JSON.parse(res)
layer.open({
content: data,
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!