func initializeJS() {
// Specify the path to the jssource.js fileJavascript code that currently exists in the jsSourceContents to the Javascript Runtime through the jsContextlet newURL = URL(string: "https://go
我可以通过在UIWebView中加载它来启动和运行这个库,但是我需要从后台线程中使用它,所以我尝试将它加载到JSContext中。我遇到的问题是库依赖于使用DOMParser of webkit,但是当框架加载到JSContext中时,解析器就不会加载。
是否可以从DOMParser访问JSContext?