首先新增一个js文件,用来放防抖等工具方法 src/utils/index.js // 防抖 export const Debounce = (fn, t) => { let delay = t || 500 let timer return function () { let args = arg ...
分类:
其他好文 时间:
2020-06-16 23:45:21
阅读次数:
133
lnmt服务的搭建及其负载轮询 1、前提条件 准备三台服务器 服务器 ip 部署 服务端 192.168.7.10 mysql、nginx、tomcat 客户端1 192.168.7.11 tomcat9 客户端2 192.168.7.12 tomcat9 三台同时关闭防火墙 # systemctl ...
分类:
其他好文 时间:
2020-06-16 23:28:12
阅读次数:
86
//封装axiosimport axios from 'axios'export function request(config) { //1.创建axios实例 const instance = axios.create({ // baseURL:"http://localhost:8091", ...
分类:
移动开发 时间:
2020-06-16 23:13:51
阅读次数:
83
一:账号安全控制 1.1:基本安全设置 [root@localhost ~]# cat /etc/passwd ##查看用户账号 [root@localhost ~]# grep "/sbin/nologin$" /etc/passwd [root@localhost ~]# useradd zha ...
分类:
系统相关 时间:
2020-06-16 23:10:57
阅读次数:
105
今天被问到 mongodb,centos 7.6的自启动,报错 Jun 16 11:34:39 localhost rc.local: ERROR: child process failed, exited with error number 1 Jun 16 11:34:39 localhost ...
分类:
数据库 时间:
2020-06-16 18:30:54
阅读次数:
134
Echarts的按需加载 1.第一种按需加载的方式,需要我们手动引入比较麻烦 // 第一种按需加载的方法 // 在utils目录下新建一个initEcharts.js配置一下echarts // 注意按需加载的路径 import echarts from 'echarts/lib/echarts' ...
分类:
其他好文 时间:
2020-06-16 15:21:11
阅读次数:
122
把Java打包成jar的步骤: 右击项目,找到export确定 然后在export弹窗中找到Java文件 Java->Runnable JAR file,后点击next 最后选择要打包的项目,存放打包项目的位置,然后finish就可以进行打包了。 在Linux上运行Hadoop jar hadoop ...
分类:
编程语言 时间:
2020-06-16 13:05:18
阅读次数:
103
版本2.3.4: 在cocos中,自定义的类如果在构造函数里传参数,会有警告提示。 例如下面的类,在构造函数传入a,b参数 Test.ts const {ccclass, property} = cc._decorator; @ccclass export default class Test ex ...
分类:
其他好文 时间:
2020-06-15 22:51:02
阅读次数:
202
1.相关题目,请完成一个宏,实现四个字节翻转... unsigned long ntohl(unsigned long x){return (x >> 24) | ((x & 0xff0000) >> 8) | ((x & 0xff00) << 8) | (x << 24);} ...
分类:
其他好文 时间:
2020-06-15 19:27:32
阅读次数:
66
传送门:https://codeforces.com/contest/1364/problem/D 题目大意:给你个$n$个点,$m$条边的无向图,和一个$k$,找到以下一组条件: (1)能找到$?\frac{k}{2}?$个相互独立的点(两两之间没有边) (2)找到一个小于等于$k$的环 存在性证 ...
分类:
其他好文 时间:
2020-06-15 17:28:07
阅读次数:
79