更多详细:https://segmentfault.com/a/1190000009265310 一.标题:页面有两个按钮(test1.test2),点击这两个按钮,跳转相应页面~ 注:可直接创建一个带路由模块的项目:ng new project --routing (下面针对新建项目时没有带路由,后边再来新建路由) 1.新建两个页面 test1.test2(html.css.ts): ng g component test1 在app.modules.ts(模块)中: (1)导入
要想删除和创建,需要有root权限 [xwg@bogon ~]$ su root密码:[root@bogon xwg]# cd /home/a 切换到目录a[root@bogon a]# touch d 在目录a下创建b文件[root@bogon a]# rm -f d 删除目录a下的b文件[root@bogon a]# mkdir d 在目录a下创建d文件夹[root@bogon a]# cd /home/a/d 切换到d文件夹下[root@bogon d]# touch
脚本内容如下: #!/bin/bash function delete_file { days=$[$-] for i in `find $dir -type f -ctime +$days` do rm -rf $i done } while read line do dir=`echo $line |awk '{print $1}'` days=`echo $line |awk '{print $2}'` delete_file $dir $days done < file.txt 其中,函