Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
hrs_app_h5
/
bill
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
4b2e7653
authored
May 07, 2020
by
展昭
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
update
parent
a1297a8a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
12 deletions
src/assets/js/JsBridge.js
src/assets/js/JsBridge.js
View file @
4b2e7653
...
...
@@ -42,19 +42,19 @@ function initJsBridge(readyCallback) {
}
}
//
//
调用注册方法 原生调用JS
//
connectWebViewJavascriptBridge(function (bridge) {
//
if (isAndroid) {
//
bridge.init('reloadTXLContact', function (data, responseCallback) {
//
responseCallback('received from native data:', data);
//
});
//
}
// 调用注册方法 原生调用JS
connectWebViewJavascriptBridge
(
function
(
bridge
)
{
if
(
isAndroid
)
{
bridge
.
init
(
'reloadTXLContact'
,
function
(
data
,
responseCallback
)
{
responseCallback
(
'received from native data:'
,
data
);
});
}
//
bridge.registerHandler('reloadTXLContact', function (data, responseCallback) {
//
responseCallback('received from native data:' + data);
//
});
//
readyCallback();
//
});
bridge
.
registerHandler
(
'reloadTXLContact'
,
function
(
data
,
responseCallback
)
{
responseCallback
(
'received from native data:'
+
data
);
});
readyCallback
();
});
}
export
default
initJsBridge
;
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment