Javascript 作业调度程序 UI 小部件?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3050424/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Job scheduler UI widget?
提问by tinny
Does anyone know of a good Job scheduler UI widget?
有谁知道一个好的作业调度程序 UI 小部件?
The ideal component would be a Javascript widget (hopefully JQuery) that allows a user to select a frequency which is converted to a cron expression.
理想的组件是一个 Javascript 小部件(希望是 JQuery),它允许用户选择转换为 cron 表达式的频率。
Anything good out there?
外面有什么好东西吗?
采纳答案by Shawn Chin
jquery-cronis a jQuery plugin for presenting a more intuitive interface for users to specify frequency, and converting that into a cron value.
jquery-cron是一个 jQuery 插件,用于为用户提供更直观的界面来指定频率,并将其转换为 cron 值。
Compulsory disclosure: I am the author of the plugin. I had a similar requirement recently and could not find anything suitable so I wrote my own and published it on github.
强制披露:我是插件的作者。我最近有类似的需求,找不到合适的东西,所以我写了自己的并将其发布在 github 上。
Disclaimer: I have limited web dev experience and dare not make bold claims about the plugin's fit for purpose. The only assurance I can give is that it has been used in at least one project without any problems (yet). Feedback / pull requests welcome.
免责声明:我的网络开发经验有限,不敢大胆宣称该插件是否适合用途。我能给出的唯一保证是它至少已在一个项目中使用过,没有任何问题(还)。欢迎反馈/请求请求。
回答by maraujop
A couple of alternatives:
几个选择:
- jqCronhttps://github.com/arnapou/jqcronVery similar to jquery-cron but it lets you choose multiple values in some ranges and has i18n support.
- Corntabhttp://www.corntab.com/pages/crontab-gui
- jqCron https://github.com/arnapou/jqcron与 jquery-cron 非常相似,但它允许您在某些范围内选择多个值并支持 i18n。
- Corntab http://www.corntab.com/pages/crontab-gui
回答by Murali Mopuru
I found this one is very good and well suited if you are using Quartz Scheduler in the back-end.
如果您在后端使用 Quartz Scheduler,我发现这个非常好并且非常适合。
https://github.com/hsal/cronGen
https://github.com/hsal/cronGen
Just that, Downloaded source have small issue in Demo.html and DemoBS3.html. You have to correct the CronGen.js to cronGen.js.
只是,下载的源代码在 Demo.html 和 DemoBS3.html 中存在小问题。您必须将 CronGen.js 更正为 cronGen.js。
You can match trigger expression generated by this(cronGen.js) widget and cronmaker(http://www.cronmaker.com/) Works well for Quartz scheduler
您可以匹配由此(cronGen.js)小部件和cronmaker(http://www.cronmaker.com/)生成的触发器表达式适用于Quartz调度程序
回答by Onteru Mahendra
Another alternative is:
另一种选择是:
https://github.com/onterumahendra/CronScheduler/
https://github.com/onterumahendra/CronScheduler/
It is well suited if you are using Quartz Scheduler in the back-end. It generates the CRON expressions and populate the CRON expressions in UI as well.
如果您在后端使用 Quartz Scheduler,它非常适合。它生成 CRON 表达式并在 UI 中填充 CRON 表达式。
回答by bjornd
All I can find is this flex component http://www.novio.be/blog/?p=902.
我只能找到这个 flex 组件http://www.novio.be/blog/?p=902。
回答by user3875999
One more alternative: Crontab js generator
另一种选择:Crontab js 生成器
Simple and clean, only javascript, without any frameworks, size - 7kb
简单干净,只有javascript,没有任何框架,大小 - 7kb
回答by user2507420
I also created a simple cron builder in jquery + jquery widgets:
我还在 jquery + jquery 小部件中创建了一个简单的 cron 构建器:
Example: http://bradsdavis.com/wp-content/uploads/jquery-cronbuilder/
示例:http: //bradsdavis.com/wp-content/uploads/jquery-cronbuilder/

