- 博客(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 61
原创 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 72
原创 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 199
原创 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 240
原创 改变鼠标图标形状
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 87
原创 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 173
原创 insertAdjacentHTML的使用
切记不要使用innerHTML,会出现各种意想不到的问题。用insertAdjacentHTML消灭代码中所有的innerHTMLinsertAdjacentHTML使用方法
2020-08-10 13:14:13 128
原创 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 247 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人