自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 收藏
  • 关注

原创 tar解压tgz文件出现gzip: stdin: not in gzip format报错问题

表明不需要添加z参数tar -zxcf xxx.tgzgzip: stdin: not in gzip formattar -xcf xxx.tgz#success

2021-07-13 16:29:40 1017

原创 harbor安装异常ERROR:The container name “/harbor-log” is already in use by container

ERROR: for harbor-log Cannot create container for service log: Conflict. The container name “/harbor-log” is already in use by containerdocker-compose down #关闭本机其他harbor

2021-07-08 16:56:07 884

原创 harbor webhook异常一则 harbor源码构建调试记录

今日接盘一些历史项目遇到一些奇怪的事情,因为要更换webhook地址,理论上是直接修改webhook就ok。后面发现webhook有个问题(升级了2.0也没法解决),webhook的地址无法修改,且前端无论修改成哪个地址,都显示测试连接成功初步怀疑前端问题,后来通过前端F12发现后端返回200,问题定位到harbor-core的后端,打开日志果然发现端倪。没办法 只能通过改源码debug了,上图已经是开过debug模式,显示的内容有限 直接看源码https://github.com/goharb.

2021-07-07 18:58:22 432

原创 前端笔记: 判断对象类型的几种方法

在JS/TS上如何判断对象类型呢通过instanceofinstanceof xx type需要知道object类型,做类型判断用func instanceof{this.__left=this.__right}通过typeof只能识别string object number null这些通过Object.prototype因为几乎所有的对象类型都是object,所以可以打印他的类型的stringObject.prototype.toString.call(this.obj

2021-07-01 15:38:52 534

原创 Angular NG6001异常: The class is listed in the declarations of the NgModule

error NG6001: The class ‘’ is listed in the declarations of the NgModule ‘’,but is not a directive, a component, or a pipe. Either remove it from the NgModule’s declarations, or add an appropriate Angular decorator.tsconfig接受组件参数注入“strictInjectionParam

2021-06-25 12:23:20 3206

原创 TS2717

angular 报错Error: node_modules/resize-observer-polyfill/src/index.d.ts:19:18 - error TS2717: Subsequent property declarations must have the same type. Property ‘contentRect’must be of type ‘DOMRectReadOnly’, but here has type ‘DOMRectReadOnly’.解决库检查报错

2021-06-24 15:19:18 347

原创 Angular TypeScript 模块冲突 Error: BrowserModule has already been loaded

angularTs错误日志ERROR Error: Uncaught (in promise): Error: BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.解决方法:把BrowserCommon替换为CommonModule..

2021-06-24 15:08:01 482

原创 Angular解决办法error Can‘t bind to ‘nzData‘ since it isn‘t a known property of ‘nz-table‘.

报错Angular error Can’t bind to ‘nzData’ since it isn’t a known property of ‘nz-table’.解决方法检查子模块引用import {NzTableModule} from “ng-zorro-antd/table”;

2021-06-24 15:07:44 1892

原创 Golang : Slice切片安全

Golang数据结构: Sclice源码分析-线程不安全问题 1.Slice 数据结构2.slice 扩容1.Slice 数据结构首先来看看slice的数据结构type slice struct{ array unsafe.Pointer //指针指向底层数组 len int cap int}底层数据结构大致如下: slice底层指向*array2.slice 扩容...

2021-06-01 01:30:26 1248 1

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除