83ce141f by ex

初始化

1 parent 09c5629e
...@@ -95,7 +95,12 @@ layer.open({ ...@@ -95,7 +95,12 @@ layer.open({
95 content: 'hah' , 95 content: 'hah' ,
96 time: 2 96 time: 2
97 }) 97 })
98 98 bridge.registerHandler('postGPS', function(data, responseCallback) {
99 log('ObjC called testJavascriptHandler with', data)
100 var responseData = { 'Javascript Says':'Right back atcha!' }
101 log('JS responding with', responseData)
102 responseCallback(responseData)
103 })
99 104
100 105
101 if(isAndroid) { 106 if(isAndroid) {
...@@ -126,7 +131,7 @@ if(isAndroid) { ...@@ -126,7 +131,7 @@ if(isAndroid) {
126 }); 131 });
127 } else { 132 } else {
128 layer.open({ 133 layer.open({
129 content. '环境判断失败', 134 content: '环境判断失败',
130 time: 2 135 time: 2
131 }) 136 })
132 } 137 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!