Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
karosLi committed Aug 31, 2019
1 parent 3684efd commit c2617e0
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 3 deletions.
Binary file added Demo1.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Demo2.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Demo3.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</head>
<body>
<button onclick="invokeModuleDefaultFunction()">调用默认模块功能去监听事件</button>
<button onclick="invokeModuleDefaultFunctionToTransferMsg()">调用默认模块功能去转发消息</button>
<button onclick="invokeModuleDefaultFunctionToTransferMsg()">调用默认模块功能把消息并转发给C模块</button>
<button onclick="invokeModuleAFunction()">调用模块A功能给a+1并返回结果</button>
<button onclick="invokeModuleBFunction()">调用模块B功能获取VC的标题</button>
</body>
Expand Down
4 changes: 2 additions & 2 deletions KKJSBridgeDemo/KKJSBridgeDemo/ViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ - (void)load {
NSString *url = @"";
{
// 测试JSBridge
url = @"http://127.0.0.1:50000/moduleTest";
// url = @"http://127.0.0.1:50000/moduleTest";
}
{
// 测试 ajax 和 set-cookie
Expand All @@ -36,7 +36,7 @@ - (void)load {
}
{
// 测试第三方网站 ajax 请求
// url = @"https://m.taobao.com";
url = @"https://m.taobao.com";
}

WebViewController *web = [[WebViewController alloc] initWithUrl:url];
Expand Down

0 comments on commit c2617e0

Please sign in to comment.