search

Home  >  Q&A  >  body text

webkit2gtk+如何把c/c++函数绑定到js中?

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

ringa_leeringa_lee2882 days ago571

reply all(1)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-04-17 12:04:47

    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

    reply
    0
  • Cancelreply