Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

能否在TASK界面增加一个远程自动更新JS到本地的功能? #30

Closed
Mark-1215 opened this issue Jan 19, 2021 · 3 comments
Closed

Comments

@Mark-1215
Copy link

能否在TASK界面增加一个远程自动更新JS到本地的功能?
如题可以根据时间表达式来定义什么时候更新,或者在运行前更新。

@crossgg
Copy link

crossgg commented Jan 20, 2021

能否在TASK界面增加一个远程自动更新JS到本地的功能?
如题可以根据时间表达式来定义什么时候更新,或者在运行前更新。

定时任务加一个curl命令或者wget撒?

@elecV2
Copy link
Owner

elecV2 commented Jan 20, 2021

远程 JS 已经可以实现自动更新。
如果你非要在某个时间定时更新的话,可以写一个简单的 JS:

$download(url, { folder: 'script/JSFile' })

然后设置一个定时任务运行就好了。

@Mark-1215
Copy link
Author

感谢感谢。

@elecV2 elecV2 closed this as completed Jan 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants