import{CronEditorModule}from"cron-editor";@NgModule({imports:[...,CronEditorModule],...})exportclassMyModule{} Use the component in your html code: <cron-editor[(cron)]="cronExpression"></cron-editor> That's it, you're done!
<cron-editor[(cron)]="cronExpression"[disabled]="isCronDisabled"[options]="cronOptions"></cron-editor> In your component import{Component}from'@angular/core';import{CronOptions}from'cron-editor';@Component({selector:'...',templateUrl:'...'})exportclassAppComponent{publiccronExpression='0 12...
locate通过搜寻系统内建文档数据库达到快速找到档案,数据库由updatedb程序来更新,updatedb是由cron daemon周期性调用的。默认情况下locate命令在搜寻数据库时比由整个由硬盘资料来搜寻资料来得快,但较差劲的是locate所找到的档案若是最近才建立或 刚更名的,可能会找不到,在内定值中,updatedb每天会跑一次,可以由修改cront...