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
a22b537c
authored
2018-08-30 00:59:39 +0800
by
ex
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
弹框提示
1 parent
a19c91c2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
js/JSBridge.js
js/JSBridge.js
View file @
a22b537
...
...
@@ -91,17 +91,22 @@ var appClient = new AppClient(window.android, true);
// content: window.android,
// time: 2
// })
layer
.
open
({
content
:
JSON
.
stringify
(
window
)
,
time
:
2
})
if
(
isAndroid
)
{
layer
.
open
({
content
:
'Android'
,
time
:
2
})
appClient
=
new
AppClient
(
window
.
android
,
true
);
// 此处可以调用一些init的方法
}
else
if
(
isiOS
)
{
layer
.
open
({
content
:
'IOS'
,
time
:
2
})
function
setupWebViewJavascriptBridge
(
callback
)
{
if
(
window
.
WebViewJavascriptBridge
)
{
return
callback
(
WebViewJavascriptBridge
);
}
if
(
window
.
WVJBCallbacks
)
{
return
window
.
WVJBCallbacks
.
push
(
callback
);
}
...
...
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