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
38cce803
authored
2018-09-02 17:42:07 +0800
by
unknown
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提示运行环境
1 parent
9b506f74
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
js/JSBridge.js
js/JSBridge.js
View file @
38cce80
...
...
@@ -15,7 +15,7 @@ function isJson(str) {
return
true
;
}
function
toJson
(
str
)
{
var
i
=
str
.
index
(
'{'
)
var
i
=
str
.
index
(
'{'
)
git
try
{
var
arr
=
str
.
split
(
2
,
str
.
length
-
4
)
console
.
log
(
arr
)
...
...
@@ -96,7 +96,7 @@ if(isAndroid || isiOS) {
if
(
isAndroid
)
{
appClient
=
new
AppClient
(
window
.
WebViewJavascriptBridge
,
true
);
layer
.
open
({
content
:
JSON
.
parse
(
JSON
.
stringify
(
appClient
)
),
content
:
JSON
.
stringify
(
appClient
),
time
:
2
})
bridge
.
init
(
function
(
message
,
responseCallback
)
{
...
...
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