Function.prototype.mycall = function () { const [first, ...rest] = arguments; const ctx = first || window; ctx.func = this; const ret = ctx.func(...re ...
分类:
移动开发 时间:
2021-03-26 15:24:30
阅读次数:
0
#!/bin/bash mkdir /etc/yum.repos.d/repo mv /etc/yum.repos.d/*.repo /etc/yum.repos.d/repo curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.ali ...
分类:
其他好文 时间:
2021-03-18 14:42:38
阅读次数:
0
在Vue3 的 RFCs文档中,Vue3中指令参数将支持动态参数。 基础示例 <div v-bind:[key]="value"></div> <div v-on:[event]="handler"></div> <div v-slot:[slotName]="slotProps"></div> 为 ...
分类:
其他好文 时间:
2021-03-17 14:44:15
阅读次数:
0
call和apply的应用场景: 判断数据类型: Object.prototype.toString用来判断类型再合适不过,借用它我们几乎可以判断所有类型的数据: function isType(data, type) { const typeObj = { '[object String]': ' ...
分类:
移动开发 时间:
2021-03-17 14:28:08
阅读次数:
0
call call()方法功能:指定函数的this,执行函数并传参 参数: fn.call(thisArg,arg1,arg2,ar3,......) ? thisArg 指定让this指向的对象,若指定了null或者undefined则内部this指向window ? arg1,arg2,ar3, ...
分类:
移动开发 时间:
2021-03-17 14:11:32
阅读次数:
0
nginx功能:反向代理、负载均衡,动静分离,安装nginx方式参考:https://www.runoob.com/linux/nginx-install-setup.html 一、nginx配置负载均衡提供了以下几种分配策略: 1.轮询(默认) 每个请求按照时间顺序逐一分配到不同的后端服务器,如果 ...
分类:
其他好文 时间:
2021-03-16 13:43:20
阅读次数:
0
方式一:软件仓库安装 此方法不用自己去配置交叉编译工具链 1.查看本地仓库有支持哪些版本哪些 输入命令: apt-cache search aarch64 2.下载安装 gcc-8-aarch64-linux-gnu 输入:sudo apt-get install gcc-8-aarch64-lin ...
分类:
系统相关 时间:
2021-03-16 13:38:58
阅读次数:
0
MinIO服务器安装配置 docker启动MinIO服务器 # 创建minio目录用于存储数据文件 mkdir /srv/minio # 启动服务器,参数解析: # -d 后台启动 # -p 9000:9000 将宿主的9000端口指向容器的9000端口 # --restart always 开机自 ...
分类:
其他好文 时间:
2021-03-12 14:40:21
阅读次数:
0
1、创建指令文件bthPermission.js,编写自定义指令: import Vue from 'vue'; import api from "api"; /**权限指令**/ const has = Vue.directive('has', { bind: async function (el ...
分类:
其他好文 时间:
2021-03-10 13:37:17
阅读次数:
0
Redis 安装 安装准备: redis 压缩包 官网下载地址:https://redis.io/download 安装步骤: 第一步:安装 gcc 编译器 官网发布的 Redis 压缩包是 C 语言源码文件,要安装 Redis 需要 gcc 编译器来编译源码 输入安装 gcc 命令,如下: [ro ...
分类:
其他好文 时间:
2021-03-10 13:27:29
阅读次数:
0