RegExp对象中的方法(检索正则表达的) text() 返回值为true/false exec() 返回一个数组,放匹配到的结果,为找到则输出null compile() ...
分类:
其他好文 时间:
2021-06-24 17:32:57
阅读次数:
0
//获取标准输出//第一种result = sh returnStdout: true ,script: "<shell command>"result = result.trim()//第二种result = sh(script: "<shell command>", returnStdout: ...
分类:
系统相关 时间:
2021-06-23 17:14:46
阅读次数:
0
先看代码: <el-checkbox v-model="file" :true-label="1" :false-label="0">选择</el-checkbox>data(){ return{ file: 0 }} 定义了一个多选框的变量,但是调接口时取到的值总有问题,于是用到了下面的写法: c ...
分类:
其他好文 时间:
2021-06-23 17:07:55
阅读次数:
0
合数,即有约数的数。 判断某个数是否为合数,需要几个步骤 1.是否>3 2.是否为奇数,因为偶数肯定是合数 3.是否可被比自己小的数整除 实现逻辑: 1.如果<=3则不是合数,返回false 2.如果不是奇数,返回true 3.如果能整除,返回true,都不能整除则返回false 代码如下: 1 d ...
分类:
编程语言 时间:
2021-06-23 17:06:26
阅读次数:
0
前期准备工作 数据库表 dp.properties driver=com.mysql.jdbc.Driver url=jdbc:mysql://localhost:3306/netshop?useSSL=true&useUnicode=true&characterEncoding=utf-8 use ...
分类:
其他好文 时间:
2021-06-23 16:40:43
阅读次数:
0
There are binary versions available but the source versions are later: binary source needs_compilation xfun 0.22 0.24 TRUE tinytex 0.31 0.32 FALSE rma ...
分类:
其他好文 时间:
2021-06-23 16:24:40
阅读次数:
0
Codeforces Round #726 (Div. 2) A - Arithmetic Array int main() { IOS; for (cin >> _; _; --_) { cin >> n; m = -n; rep (i, 1, n) cin >> k, m += k; cout ...
分类:
其他好文 时间:
2021-06-22 18:41:35
阅读次数:
0
##小技巧 <!--设置经典数据库命名(CURRENT_TIME)为驼峰命名(currentTime)--> <setting name="mapUnderscoreToCamelCase" value="true"/> ##动态SQL 1.定义:增加了逻辑判断进行拼接的SQL语句 UserMapp ...
分类:
数据库 时间:
2021-06-22 17:59:39
阅读次数:
0
通过Request.IsAjaxRequest()方法进行判断是否是ajax的请求,true是ajax的请求,false不是ajax的请求 后端: 前端: 效果: 使用Request.IsAjaxRequest()方法进行判断是否是ajax请求的原理是:主流浏览器在发出ajax请求的时候都会带着X- ...
分类:
Web程序 时间:
2021-06-22 17:48:28
阅读次数:
0
二分查找 对于一个有序的可迭代序列,查找一个元素时,每次都猜中间的那个数,这样一次可以排除掉一半的数据 Python版本 def main(ary, item): low = 0 high = len(ary) - 1 while low <= high: mid_index = (low+high ...
分类:
编程语言 时间:
2021-06-21 21:14:15
阅读次数:
0