业务使用 // 使用虚拟列表 const virtualComponents = useVirtualTable({ height: 350 // 设置可视高度 }) const components = useMemo(() => { return { body: { wrapper: virtu ...
分类:
其他好文 时间:
2020-12-15 12:23:17
阅读次数:
3
使进程执行某一程序。成功无返回值,失败返回 -1 int execlp(const char *file, const char *arg, ...); 借助 PATH 环境变量找寻待执行程序 参1: 程序名 参2: argv0 参3: argv1 ...: argvN 哨兵:NULL int ex ...
分类:
其他好文 时间:
2020-12-15 12:22:16
阅读次数:
3
npm i wangeditor --save 页面单独引入 import E from "wangeditor"; <div id="div1"></div> data(){ return{ editor:null, } } mounted() { const editor = new E('#d ...
分类:
其他好文 时间:
2020-12-15 12:13:24
阅读次数:
3
//在生命周期中监听键盘keydown事件 const _this = this; document.onkeydown = function(e) { console.log(e) if (e.keyCode 13) { const isFromHaveOneInput = _this._isFr ...
分类:
其他好文 时间:
2020-12-15 12:00:55
阅读次数:
1
fcntl.h 头文件,file control的缩写。 int open(const char *path, int oflag) int openat(int fd, const char *path, int oflag) 将准备打开的文件或是设备的名字作为参数path传给函数,oflags用 ...
分类:
系统相关 时间:
2020-12-14 13:52:10
阅读次数:
8
Spring IOC 初始化刷新流程:https://www.cnblogs.com/jhxxb/p/13609289.html 这一步主要是实例化和注册 beanFactory 中实现了 BeanPostProcessor 接口的 Bean。 什么是 BeanPostProcessor /** * ...
分类:
编程语言 时间:
2020-12-11 12:18:18
阅读次数:
10
白银之春 Solution 比赛用题面、题解、标程和数据生成器都挂在 git@github.com:sun123zxy/spring.git 上。 Problem 白银之春 (spring.cpp/.in/.out) (2s,512MB) Background 妖梦正在收集春度! Descripti ...
分类:
其他好文 时间:
2020-12-10 11:22:12
阅读次数:
5
OpenCV-颜色通道的分离、合并 颜色通道的分离:split() c++: void split(const mat& src, mat* mvbegin); c++: void split(inputarray m, outputarrayofarrays mv); 第一个参数,inputarr ...
分类:
其他好文 时间:
2020-12-09 11:55:02
阅读次数:
6
JavaScript 支持 setters 和 getters 已经很长时间了。他们用带有 set 和 get 关键字的简单语法来拦截对象的属性访问和值的修改操作。 const obj = { propValue: 1, get prop() { console.log("Retrieving pr ...
分类:
编程语言 时间:
2020-12-08 13:03:08
阅读次数:
19
由于可以在任意时刻发送数据包,对于1到n的所有路径,尽管所用时间不同,可你完全可以通过调整他们的开始时间,使他们最后在同一时间到达。 故题目转换为求$1$~$n$的路径数目。规定了图为DAG,拓扑排序即可。 const int N=1e5+10; vector<PII> g[N]; int din[ ...
分类:
其他好文 时间:
2020-12-08 12:18:40
阅读次数:
4