$engine 返回
脚本引擎
run(path)
版本:1.0.0
运行路径中的代码
- 参数 : path {string} 脚本路径
- 返回 : {string} taskID
run(jsFile)
版本:1.0.0
运行路径中的代码
- 参数 : jsFile {File} 代码文件
- 返回 : {string} taskID
runCode(code)
版本:1.0.0
运行代码
- 参数 : code {string} 代码
- 返回 : {string} taskID
runCode(path,code)
版本:1.0.0
运行代码
- 参数 : path {string} 路径(决定了$task的路径:$task.getPath())
- 参数 : code {string} 代码
- 返回 : {string} taskID
ls()
版本:1.0.0
列出所有的任务信息
- 返回 : {List[JsTaskInfo]} 任务列表信息
stop(id)
版本:1.0.0
停止指定任务
- 参数 : id {string} 任务id
stopAll(exit)
版本:1.0.0
停止所有任务
- 参数 : exit {boolean} 是否退出系统
stopAll()
版本:1.0.0
停止所有任务
lsTask()
版本:1.0.0
获得任务列表信息
- 返回 : {List[JsExecuteTask]} 任务列表信息