Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
杨建斌
/
dy-wx2
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
5b18ca8d
authored
2018-09-01 15:08:50 +0800
by
ex
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
h5 2
1 parent
3588aad5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
js/JSBridge.js
js/JSBridge.js
View file @
5b18ca8
...
...
@@ -77,10 +77,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!' }
...
...
@@ -101,10 +101,6 @@ if(isAndroid || isiOS) {
setTimeout
(
function
()
{
document
.
documentElement
.
removeChild
(
WVJBIframe
)
},
0
)
}
setupWebViewJavascriptBridge
(
function
(
bridge
)
{
layer
.
open
({
content
:
bridge
,
time
:
2
})
if
(
isAndroid
)
{
}
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment