自定义博客皮肤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)
  • 收藏
  • 关注

原创 docker安装

1.删除dockeryum remove docker \ docker-client \ docker-client-latest \ docker-common \ docker-latest \ docker-latest-logrotate \ docker-logrotate \ docker-engine2.下载docke

2021-02-27 16:10:22 53

原创 git操作

1.连接远程仓库git initgit remote add origin [url]git add .git commit -m 'first commit'git push origin master2.删除远程并本地保留git rm -r --cached [filename]

2021-02-24 13:42:11 65

原创 SpringBoot读取Resource下文件的几种方式

第一种 ClassPathResource classPathResource = new ClassPathResource("static/index.html"); File file = classPathResource.getFile();第二种 URL resource = this.getClass().getResource("/static/index.html"); File file = new File(resource.getFile());第三种

2020-12-03 10:36:54 162

原创 axios请求方式

1.GET请求 var params = new URLSearchParams(); params.append("username", this.loginForm.username); params.append("password", this.loginForm.password); this.$axios.request({ method:'GET', url:'/api/login', params:pa

2020-11-02 11:19:57 207

原创 改变鼠标图标形状

1.cssstyle="cursor:url('images/hand_cursor.png'),pointer;"2.jsdocument.getElementById('viewerContainer').style.cursor = "url(images/select_cursor.png),pointer";注意:url括号中的路径不要加引号,否则无效

2020-08-10 13:48:18 76

原创 js操作滚动条

1.scrollTop 总是为零,赋值也无效没有找对到底是哪个dom元素生成的滚动条。2.offsetTopoffsetTop表示该元素离滚动条顶部的距离3.获取屏幕的高度document.documentElement.clientHeight4.滚动代码document.getElementById('comment-wrapper').scrollTop = document.querySelector(`div[uuid='${uuId}']`).offsetTop-document

2020-08-10 13:26:20 148

原创 insertAdjacentHTML的使用

切记不要使用innerHTML,会出现各种意想不到的问题。用insertAdjacentHTML消灭代码中所有的innerHTMLinsertAdjacentHTML使用方法

2020-08-10 13:14:13 110

原创 pdf.js

pdf加注释 开源地址1.浏览器无法访问默认地址 localhost:8080修改默认访问地址 修改 scripts/web 文件$server --port 80 --host 0.0.0.0 --disableHostCheck=true --inline --config ./webpack.web.js --content-base web/2.pdf地址动态访问修改 web/index.js文件修改documentId 的值,改为动态获取。 function getUrlP

2020-05-28 13:47:28 201 1

原创 乐观锁

乐观锁通常有两种实现方式:版本号机制和CAS(compare and swap)

2019-07-22 13:20:11 52

空空如也

空空如也

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

TA关注的人

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