⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 script.java

📁 javascript语言的解释器源码
💻 JAVA
字号:
package org.mozilla.javascript;/** * All compiled scripts implement this interface. * <p> * This class encapsulates script execution relative to an * object scope. * @since 1.3 * @author Norris Boyd */public interface Script {    /**     * Execute the script.     * <p>     * The script is executed in a particular runtime Context, which     * must be associated with the current thread.     * The script is executed relative to a scope--definitions and     * uses of global top-level variables and functions will access     * properties of the scope object. For compliant ECMA     * programs, the scope must be an object that has been initialized     * as a global object using <code>Context.initStandardObjects</code>.     * <p>     *     * @param cx the Context associated with the current thread     * @param scope the scope to execute relative to     * @return the result of executing the script     * @see org.mozilla.javascript.Context#initStandardObjects     */    public Object exec(Context cx, Scriptable scope);}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -