Kubernetes允许Pod终止之前,执行自定义逻辑。 字段定义 字段定义:pod.spec.containers.lifecycle.preStop $ kubectl explain pod.spec.containers.lifecycle.preStop KIND: Pod VERSION ...
分类:
Web程序 时间:
2021-03-02 11:48:20
阅读次数:
0
SVG 意为可缩放矢量图形(Scalable Vector Graphics)。 SVG 使用 XML 格式定义图像。 svg 的子标签 矩形<rect>、 圆形<circle> 椭圆 <ellipse> 线 <line> 路径 <path> 多边形 <polygon> 折线 <polyline> ...
分类:
其他好文 时间:
2021-02-27 13:04:16
阅读次数:
0
直接使用window.scroll or window.scrollTo设置滚动时,在iOS下没有滚动动画效果可以安装smoothscroll-polyfill包来解决这个问题 安装完再直接使用window.scroll or window.scrollTo即可 git地址:https://gith ...
分类:
移动开发 时间:
2021-02-26 13:10:02
阅读次数:
0
代码如下: 1 /// <summary> 2 /// 重置某分组 3 /// </summary> 4 /// <typeparam name="T">资源类型</typeparam> 5 /// <param name="groupName">组名</param> 6 /// <param na ...
分类:
编程语言 时间:
2021-02-26 13:02:22
阅读次数:
0
将Autodesk.Revit.DB.Plane替换成Autodesk.Revit.DB.Plane.CreateByNormalAndOrigin<!--more--> 1将Autodesk.Revit.DB.Plane替换成Autodesk.Revit.DB.Plane.CreateByNorm ...
分类:
数据库 时间:
2021-02-25 12:15:11
阅读次数:
0
手机屏展示这样的效果,用swiper去实现, <template> <view class="container"> <view class="mas-promo-swiper-scroll-wrapper" :style="{ transform:'translateX(' +swiperMarg ...
分类:
移动开发 时间:
2021-02-25 11:49:26
阅读次数:
0
pkg embed in go embed包 提供了访问正在运行的go程序的功能。 嵌入一个文件到string import _ "embed" //go:embed hello.txt var s string print(s) 嵌入一个文件到一个字节切片 import _ "embed" //g ...
分类:
其他好文 时间:
2021-02-25 11:43:34
阅读次数:
0
移动端网页--better-scroll容易采坑合集 一、better-scroll源码bug,浏览器需要刷新一次才能正常滑动 在new BScroll时,在options中加入 mouseWheel: true,//开启鼠标滚轮 disableMouse: false,//启用鼠标拖动 disab ...
分类:
移动开发 时间:
2021-02-19 12:59:19
阅读次数:
0
SVG 有一些预定义的形状元素,可被开发者使用和操作。 SVG 形状 SVG 有一些预定义的形状元素,可被开发者使用和操作: 矩形 <rect> 圆形 <circle> 椭圆 <ellipse> 线 <line> 折线 <polyline> 多边形 <polygon> 路径 <path> 下面的章节 ...
分类:
其他好文 时间:
2021-02-17 14:05:18
阅读次数:
0
常用的Dos命令 查看当前目录下所有文件 Dir 跨盘切换目录 cd /d 盘:\文件名字 返回上一级 cd.. 清理屏幕 cls 进入文件 cd 文件名字 退出终端 exit 进入管理员模式,查看电脑ip ipconfig 还可以打开软件 管理员模式ping www.bilibili.com 可以 ...
分类:
其他好文 时间:
2021-02-16 12:47:26
阅读次数:
0