用vue写一个清单 清单功能 可以实现本地存储 有完成和未完成 可以增加删除 可以修改内容 html部分 <div id="app"> <div class="top"> <div> <label>ToDoList</label> <input type="text"placeholder="添加ToDo" v-model.trim="
代码质量管理工具-SonarQube 一、前期准备 1.1 JDK 11.0安装 可参考JDK 1.8的安装教程:https://blog.csdn.net/weixin_41668084/article/details/111147667 1.2 PostgreSQL安装 参考链接:https://blog.csdn.net/weixin_41668084/article/details/113865237 注意:SonarQube 7.9起不
1、 [root@centos79 test]# cat test.sh #!/bin/bash #step1 check consistence of columns temp1=`head -n 1 $1 | awk '{print NF}'` for i in $(seq `sed -n "$=" $1`) do temp2=$(sed -n "$i"p $1 | awk '{print NF}') if [ $
1、 [root@centos79 test]# cat test.sh #!/bin/bash #step1 check consistence of columns temp1=`head -n 1 $1 | awk '{print NF}'` for i in $(seq `sed -n "$=" $1`) do temp2=$(sed -n "$i"p $1 | awk '{print NF}') if [ $
工作中总是有很多工作需要重复性来完成,比如每天都需要执行一次备份、每天都需要分析一次业务的access.log日志,每分钟都需要监测一次主机的状态等等工作,这些重复性的工作我们一般都是使用脚本来完成,对于不需要频繁执行的任务,可以结合计划任务➕脚本完成,但是系统的计划任务只能精确
Itertator:遍历器(迭代器) const it=[1,2]Symbol.iterator; console.log(it.next()); //{value:1,done:false} console.log(it.next()) //{value:2,done:false} console.log(it.next()) //{value:1,done:true} 什么是Iterator Symbol.iterator(可遍历对象的生成方法)->it(可遍历对
$.get( "http://img12.360buyimg.com/n1/jfs/t1/207023/2/4302/290376/61613c6eEc2e68f8b/51c92e09054c4001.jpg", function() { debugger;alert( "success" );}) .done(function() { debugger;alert( "second success" ); }) .fail(fun
在上次实验的基础上,增加maven编译java过程 ------------------------------------------------------ 1> maven 插件- maven intergration - 修改maven镜像加速 [22:27:21 root@jenkins ~]#vim /etc/maven/settings.xml <mirrors> <!-- mirror | Specifies a repo
解决方案一:将https替换成git 第一次克隆的错误信息: Administrator@WIN-QIJ6CH8JVRR MINGW64 /f/BookProject $ git clone https://github.com/fenixsoft/microservice_arch_springcloud.git Cloning into 'microservice_arch_springcloud'... fatal: unable to access 'https:/
本框架是基于nodejs express框架二次开发的,本框架包含数据库操作示例和注解。 适合nodejs入门学习或者nodejs开发人员开发中小型web项目。直接在命令窗口运行:npm start,就可启动程序!访问地址:http://127.0.0.1:3000/ nodejs数据库链接相关命令 sqlHelper.js //封装数据操作模块
一:for语法 (1)语法一 for var in value1 value2 ...... do commands done 例1:直接赋值,循环输出1-9数字 for i in 1 2 3 4 5 6 7 8 9 do echo $i done 例2:命令赋值,循环输出1-9数字 for i in `seq 1 9` #seq是一
1. Shell for循环跳跃不连续数 for i in {"172.15.7."{101..106},"172.15.7."{109..111},"160.168.103."{191..192}};do ssh ${i} "date";done # 进一步整合 for i in {"172.15.7."{{101..106},{109..111}},"160.168.103."{19
循环遍历清理异常的pod #!/bin/bash namespace=`kubectl get ns -o jsonpath="{.items[*].metadata.name}"` pod_status=("Evicted" "ImagePullBackOff" "ContainerCreating" "ErrImagePull" "ContainerCreating" "
用watch命令,如:1秒定时执行ls命令。 watch -n 1 ls 用while do done语句,如:每隔1秒打印Hello world。 while true;do echo "Hello world";sleep 1;done
脚本以#!/bin/(指定解释器)通常以 #!/bin/bash 1.基本语法 1.定义变量: 变量=值 A=1 查看值echo A 2.撤销变量:unset 变量 3.声明静态变量:readonly B=3 注意,readon变量不能unset 2.变量定义规则 1.变量名称可以由字母,数字下划线组成,但不能以数字开头,环境变量建议大写 2.等号俩测不
# $ cmake --version cmake_minimum_required(VERSION 3.5) # Set the project name project (hello_headers) # Create a sources variable with a link to all cpp files to compile set(SOURCES src/Hello.cpp src/main.cpp) # Add an executable with the above s
目录 一、if判断 1.基本语法 2.实例 二、case语句 基本语法 三、for循环 1.基本语法1 2.基本语法2 3. 实例 四、while循环 1.基本语法 2. 实例 一、if判断 1.基本语法 if [ 条件判断式 ];then 程序 fi
1、模块/包分类 Node.js 有三类模块,即内置的模块、第三方的模块、自定义的模块。 1.1 内置的模块 Node.js 内置模块又叫核心模块,Node.js安装完成可直接使用。如: const path = require('path') var extname = path.extname('index.html') console.log(extname) 1.2 第三方的N
//声明一个对象 const banji = { name: "终极一班", stus: [ 'xiaoming', 'xiaoning', 'xiaotian', 'knight'
#!/bin/bash arr=(3 2 5 4 1) len=${#arr[@]} for i in $(seq 1 $len) ; do index=$(($len - $i - 1)) for j in $(seq 0 $index) ; do if [[ ${arr[j]} > ${arr[j+1]} ]]; then tmp=${arr[j]}
1 获取文件列表 find . -name "*.data" |xargs grep -i 'yearvariable' | uniq | awk '{print $1}' |cut -d : -f 1 2 将结果放置到一个txt 里面然后执行操作 注意 需要在当前目录下 for i in `cat 1.txt` ; do scp $i /root/20211008/ ; done 感觉还是比较简单的.
嘿,hxd,你知道什么是迭代器吗?你知道迭代器有什么用吗?我就不知道,然后就有了它。
Java优缺点,lambda优缺点,喜欢用什么ide,用过什么dev ops 合同工居然还问bq:自己当领导,完不成任务的经历 我说我北京人,他说好有趣哦。 这哥们在房子外面晒太阳?活久见 卧槽这种悠闲没技术又名声大的公司才是dream company好吗!
#! /bin/bash homework 1 create------ #- dir=/home/acs/homework/lesson_1/homework_0 for i in dir_a dir_b dir_c do >--- mkdir ${dir}/${i} done dir1=/home/acs/h
allegro 镂空铜皮102 鼠标有件done。