[英]What is the return type of executeScript() method of JavascriptExecutor?
If a JavaScript on a web page return non-decimal value then what will javascriptExecuter.executeScript()
will return? 如果网页上的JavaScript返回非十进制值,那么javascriptExecuter.executeScript()
将返回什么?
Ccan anyone answer this question? 有人可以回答这个问题吗?
executeScript() executes a JavaScript in the context of the currently selected frame or window. executeScript()在当前选定的框架或窗口的上下文中执行JavaScript 。 The script fragment provided will be executed as the body of an anonymous function. 提供的脚本片段将作为匿名函数的主体执行。
If the script has a return value (ie if the script contains a return statement), then the following type of objects are returned: 如果脚本具有返回值(即,如果脚本包含return语句),则返回以下类型的对象:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.