{ required: true, message: "请输入申请人手机号码", trigger: "blur" }, { min: 11, max: 11, message: "请输入11位手机号码", trigger: "blur" }, { pattern: /^(13[0-9]|14[579]|15[0-3,5-9]|16[6]|17[0135678]|18[0-9]|19[89])\d{8}$/, message: "…
{ required: true, message: "请输入申请人手机号码", trigger: "blur" }, { min: 11, max: 11, message: "请输入11位手机号码", trigger: "blur" }, { pattern: /^(13[0-9]|14[579]|15[0-3,5-9]|16[6]|17[0135678]|18[0-9]|19[89])\d{8}$/, message: "…
mybatis中association和collection的column传入多个参数值 项目中在使用association和collection实现一对一和一对多关系时需要对关系中结果集进行筛选,如果使用懒加载模式,即联合使用select标签时,主sql和关系映射里的sql是分开的,查询参数传递成为问题。 column 数据库的列名或者列标签别名。与传递给resultSet.getString(columnName)的参数名称相同。注意: 在处理组合键时,您可以使用column=“{prop1=col1,prop…
警告如下 DEPRECATION WARNING: The selector ".jnpf-editor-quill > > > .ql-container.ql-snow" is invalid CSS. It will be omitted from the generated CSS. This will be an error in Dart Sass 2.0.0. More info: https://sass-lang.com/d/bogus-combinators…
场景 大量用户请求的情况下,短时间并发很高 # 思路 nginx 通过反向代理 做负载均衡 # 基础概念 ### 反向代理(Reverse Proxy) 说明:就是代理服务器代理了目标服务器,去和客户端进行操作 用途 隐藏服务器的真实IP 负载均衡 通过缓存加速访问资源 提供安全保障 ### 负载均衡 实际生产环境中,反向代理服务器代理的目标服务器可能不止一个。比如开发好的某个应用部署在一台Tomcat服务器上,而Tomcat的并发上限不优化情况下,默认只有两百左右,这时候为了解决高并发的问题,就只能选择更替服务器…
具体实现: /** * 字符串转换16进制进制 * @returns {string} * @param str */ strToHexadecimal(str) { let val = ''; for (let i = 0; i < str.length; i++) { if (val === '') val = str.charCodeAt(i).toString(16); else val += str.charCodeAt(i).toString(16); } …
实现方法: // Vue3.0 响应式原理 // 1). 2.0默认会递归(数据尽量扁平化) 2). 2.0数组改变length是无效的 3). 2.0对象不存在的属性不能被拦截 // proxy 兼容性差 ie11不兼容 let toProxy = new WeakMap(); // 弱引用映射表 es6 放置的是 原对象:代理过的对象 let toRaw = new WeakMap(); // 被代理过得对象:原对象 // 判断是不是对象 function isObject(val) { return type…
具体实现: // Vue2.0如何实现响应式原理 // 拿到原来原型上的方法 let oldArrayPrototype = Array.prototype; // 创建新的实例,获取原型所有方法,以免影响原型方法。 let propto = Object.create(oldArrayPrototype); // 继承 ["push", "shift", "unshift"].forEach(method => { propto[method] = function() { // 函数劫持, 把函数进行重写 内部…
下载 maven官网地址 配置环境变量 在配置之前请将JDK安装好。 添加M2_HOME:对应Maven的解压目录即可。 编辑Path环境变量: 添加 %M2_HOME%\bin 测试,在cmd窗口输入mvn -v查看 显示如下即配置成功 为什么慢 执行 mvn 各种命令的时候,默认是去 maven 官方镜像源获取需要安装的具体软件信息 默认源地址在国外,从国内访问的速度肯定比较慢 方法一: 配置只在当前项目生效 在 pom.xml 文件内添加以下配置 ali-maven http://maven.aliyun.c…
项目地址: 项目地地址 参考地址: bilibili 1.下载nodejs 2.下载脚手架: npm install create-react-app -g 3.创建项目:create-react-app react-test 1.火热的0配置的打包工具parcel 地址: parcel官网 2.安装babel插件,将jsx语法转换成js对象(虚拟DOM) npm install babel-core babel-preset-env babel-plugin-transform-react-jsx --save-…
const a = [1,2,3,4,5] const result = []; for(let i=0;i<a.length; i+=3) { const r = a.slice(3, i+3); console.log(r); result.push(r) } console.log(result, 'result')