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
83ce141f
authored
2018-09-01 14:43:07 +0800
by
ex
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
初始化
1 parent
09c5629e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
js/JSBridge.js
js/JSBridge.js
View file @
83ce141
...
...
@@ -95,7 +95,12 @@ 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!'
}
log
(
'JS responding with'
,
responseData
)
responseCallback
(
responseData
)
})
if
(
isAndroid
)
{
...
...
@@ -126,7 +131,7 @@ if(isAndroid) {
});
}
else
{
layer
.
open
({
content
.
'环境判断失败'
,
content
:
'环境判断失败'
,
time
:
2
})
}
...
...
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