1 - 对象 //构造函数 function obj(){ this.name = 'zhangsan', this.age = 23, this.eat = function(){ console.log('js'); } } var obj2 = new obj; console.log(obj ...
分类:
Web程序 时间:
2021-01-22 12:20:07
阅读次数:
0
cv::Mat transparentImage; cv::cvtColor(image, transparentImage, CV_BGR2BGRA); // find all white pixel and set alpha value to zero: for (int y = 0; y < ...
分类:
其他好文 时间:
2021-01-22 11:46:37
阅读次数:
0
Problem LeetCode Given a binary search tree with non-negative values, find the minimum absolute difference between values of any two nodes. Example: I ...
分类:
编程语言 时间:
2021-01-21 10:55:51
阅读次数:
0
Union-Find 算法,也就是常说的并查集算法,主要是解决图论中「动态连通性」问题的。 什么是动态连通性? 对于一幅图中,各个节点是否是相连的?如果不相连,就把他们连起来。涉及到几个操作: union:连接节点p和节点q find:查找节点p的父节点 connected:判断节点p和节点q是否是 ...
分类:
编程语言 时间:
2021-01-21 10:49:02
阅读次数:
0
在做项目时,有时会在整个项目里或指定文件夹下进行全局搜索和替换,这是一个很方便功能。使用方法如下: 一、全局搜索 1、使用快捷键 Ctrl+Shift+F 打开搜索窗口,或者通过点击 Edit–>Find–>Find in path 打开搜索窗口,如下图: 2、搜索界面如下,主要分为上中下三部分,上 ...
分类:
其他好文 时间:
2021-01-21 10:43:43
阅读次数:
0
张艳涛写于2021-1-20日 What: 如何让button的长度和input长度一致呢 最先想到的是给这个button加一个class ="buttonclass",然后在vue最后的<style标签中>设置 .buttonclass { width : 100%; } 这个前两篇设置heigh ...
分类:
Web程序 时间:
2021-01-21 10:32:52
阅读次数:
0
重定向 输出重定向 进程产生的信息,存放到文件中 标准正确输出: > 标准错误输出: 2> 标准混合输出: &> 输入重定向 < 以文本内容,作为进程的标准输入 FD简介 文件句柄是windows系统的概念,在linux下称之为文件描述符FD(file description) 进程使用文件描述符在 ...
分类:
其他好文 时间:
2021-01-20 12:03:22
阅读次数:
0
CF1461B Find the Spruce 题目大意: 求指定类型图案的数量。 思路: 一个很巧妙的递推式。 注意从下往上进行递推。 Code: #include <bits/stdc++.h> using namespace std; const int N = 510; int n, m; ...
分类:
其他好文 时间:
2021-01-19 11:39:58
阅读次数:
0
6.文件查找 与搜索相关的命令常用的有whereis、which、find和locate。 whereis简单快速 whereis <关键词> whereis搜索很快,因为其并没有从硬盘中依次查找,而是直接从数据库中查询。缺点是只能搜索二进制文件(-b)、man帮助文件(-m)和源代码文件(-s)。 ...
分类:
系统相关 时间:
2021-01-18 11:07:41
阅读次数:
0
错误一:安装nginx报错“src/os/unix/ngx_user.c:26:7: error: ‘struct crypt_data’ has no member named ‘current_salt’” “src/os/unix/ngx_user.c:26:7: error: ‘struct ...
分类:
其他好文 时间:
2021-01-18 10:49:25
阅读次数:
0