// 判断数组中是否有同一项,例如:["111","22","33","111"] 返回true export const isRepeat = arr => { var hash = {} for (var i in arr) { if (hash[arr[i]]) //hash 哈希 retur ...
分类:
编程语言 时间:
2020-07-03 19:11:53
阅读次数:
55
拿button组件举例 。 button.vue <template> <Button v-bind="$attrs"> <slot></slot> </Button> </template> <script> import {Button} from "element-ui"; export de ...
分类:
其他好文 时间:
2020-07-03 15:51:48
阅读次数:
113
http://www.ruanyifeng.com/blog/2013/07/gpg.html gpg --list-keysgpg --armor --output pubkey.asc --export [用户ID]导出私钥形式如下:gpg --armor --output prikey.asc ...
分类:
其他好文 时间:
2020-07-03 15:27:55
阅读次数:
70
环境准备 192.168.122.211 Consul Prometheus 192.168.122.212 node_export 服务安装 Consul # consul docker run --name consul -d -p 8500:8500 consul prometheus 配置 ...
分类:
其他好文 时间:
2020-07-03 12:53:47
阅读次数:
55
Get-ADUser -filter * -SearchBase 'OU=test1,OU=test2,DC=domain,DC=cn' -Properties SamAccountName,DisplayName,DistinguishedName|export-csv E:\work\AD\di ...
分类:
其他好文 时间:
2020-07-03 12:43:05
阅读次数:
74
项目情况: mobile、pc在同一个项目中,希望mobile项目引入重置rem比例的文件 缺点: 每个mobile的页面都需要引入、希望有大神知道怎么解决 1.新建rem.js文件 export function resetRem () { let html = document.document ...
分类:
其他好文 时间:
2020-07-02 20:02:47
阅读次数:
142
前端项目较大,编译(npm run serve)或者打包(npm run build)时,服务突然停止,报内存溢出错误(stderr maxBuffer exceeded) 原因:在前端项目非常庞大时,webpack编译会占用很多系统资源,如果超出了V8引擎对node默认的内存限制大小时,就会产生内 ...
分类:
其他好文 时间:
2020-07-02 17:59:53
阅读次数:
80
Element implicitly has an 'any' type because expression of type 'any' can't be used to index type 'typeof 备注: 元素隐式地具有“ any”类型,因为类型“ string”的表达式不能用于索引类 ...
分类:
其他好文 时间:
2020-07-02 16:34:42
阅读次数:
634
前言 ORM是什么?:(在django中,根据代码中的类自动生成数据库的表也叫--code first) ORM:Object Relational Mapping(关系对象映射) 类名对应 》数据库中的表名 类属性对应 》数据库里的字段 类实例对应 》数据库表里的一行数据 obj.id obj.n ...
分类:
其他好文 时间:
2020-07-02 16:14:01
阅读次数:
55
MD5信息摘要算法(Message Digest Algorithm) md5是一种密码散列函数,可以生成128位(16字节)的散列值,用于确保信息传输完整一致。 这里举例如何在16机器上实现md5算法: md5.h 1 #ifndef MD5_H 2 #define MD5_H 3 4 typed ...
分类:
编程语言 时间:
2020-07-02 13:39:17
阅读次数:
47