VDWebView icon indicating copy to clipboard operation
VDWebView copied to clipboard

bridge方法不支持返回值?

Open Leven-jiliguala opened this issue 7 years ago • 2 comments

Leven-jiliguala avatar Oct 30 '19 04:10 Leven-jiliguala

支持的

// JS 方法
function jsMethod(param1, param2, param3) {
alert("使用jsBridge调用js方法成功参数为:"+param1+param2+param3)
return "success";
}

// OC调用JS方法
[self.webView.bridge executeJsMethod:@"jsMethod" params:@[@"1",@"2",@"3"] completionHandler:^(id result, NSError *error) {
NSLog(@"\njs方法执行h结果回调:%@\n错误信息:%@",result,error);
}];

VolientDuan avatar Nov 04 '19 05:11 VolientDuan

支持js call native 的方法,并获取返回值吗?

Leven-jiliguala avatar Dec 02 '19 03:12 Leven-jiliguala