callWithArguments

来源:互联网 发布:淘宝怎么登录阿里旺旺 编辑:程序博客网 时间:2024/06/06 03:56

iOS原生和H5交互,原生调用JS函数

self.jsContext = [self.webView valueForKeyPath:@"documentView.webView.mainFrame.javaScriptContext"];NSString *sectionId = [self.editDic objectForKey:@"sectionId"];NSString *noteId = [self.editDic objectForKey:@"noteId"];JSValue  *callBack = self.jsContext[@"DeleteEditedNote"];[callBack callWithArguments:@[noteId,sectionId]];
原创粉丝点击