Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swift与JavaScript的交互(通过JavaScriptCore) | PierceDark #6

Open
YunyueLin opened this issue Apr 19, 2018 · 0 comments
Open

Swift与JavaScript的交互(通过JavaScriptCore) | PierceDark #6

YunyueLin opened this issue Apr 19, 2018 · 0 comments

Comments

@YunyueLin
Copy link
Owner

https://yunyuelin.github.io/2018/02/27/Swift%E4%B8%8EJavaScript%E7%9A%84%E4%BA%A4%E4%BA%92-%E9%80%9A%E8%BF%87JavaScriptCore/#more

前言此篇参考自iOS开发 - Swift使用JavaScriptCore与JS交互作者 :天秤vs永恒1实践通过 JavaScriotCore 来实现 Swift 和 JS 的交互。 一、JavaScriptCore中的类1234JSContext:JSContext是JS的执行环境,通过evaluateScript()方法可以执行JS代码JSValue: JSValue封装了JS与ObjC中的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant