webkit2gtk+如何把c/c++函数绑定到js中?
ringa_lee
ringa_lee 2017-04-17 12:02:47
0
1
543

如题,webkit2gtk+如何把c/c++函数绑定到js中?
类似android中的addJavascriptInterface
mWebView.addJavascriptInterface(new DemoJavaScriptInterface(), "demo");

ringa_lee
ringa_lee

ringa_lee

reply all(1)
伊谢尔伦

I have never used webkit, but wke is a emasculated version of webkit. There should be some webkits in wke. There is a jsBindFunction function in wke, which is used by js to call c++ global functions

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template