简体   繁体   English

stringByEvaluatingJavaScriptFromString 的语法和解释

[英]Syntax for stringByEvaluatingJavaScriptFromString and explanation

I'm trying to run a readability javascript and I'm not sure how to use the stringByEvaluatingJavaScriptFromString to run it on a html to be displayed within a webview.我正在尝试运行可读性 javascript,但我不确定如何使用 stringByEvaluatingJavaScriptFromString 在 html 上运行它以显示在 Z5A98E2840FD0141780D854E48C608D4 中Any help would be appreciated.任何帮助,将不胜感激。 Thanks.谢谢。

The argument you pass is the JavaScript to be executed.您传递的参数是要执行的 JavaScript。 The code's return value is the string returned by the method.代码的返回值是方法返回的字符串。 You'll need to know a bit of JavaScript to do anything with this method.您需要了解一点 JavaScript 才能使用此方法执行任何操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM