摘要: 元素尺寸 jquery $().width $().height 其实是border-box 也就是原生的 domAPI offsetWidth offsetHeight 内部尺寸 jquery $().innerWidth $().innerheight 其实就是padding-box 也就是原生 阅读全文
posted @ 2021-05-30 18:42 天使佳少 阅读(53) 评论(0) 推荐(0)
摘要: $.ajax({ url: '/my/userinfo', method: 'get', success: function(res) { if(res.status !==0) { return layui.layer.msg(res.message); } renderAvatar(res.da 阅读全文
posted @ 2021-03-16 23:57 天使佳少 阅读(940) 评论(0) 推荐(0)
摘要: 直接提交操作 git commit -a -m '注释' 跳过暂存区直接提交到仓库 撤销操作 git checkout -- filename 撤销工作区指定的文件 git reset HEAD filename 撤销暂存区指定文件 git reset HEAD . 撤销暂存区所有文件 git re 阅读全文
posted @ 2021-03-12 00:15 天使佳少 阅读(47) 评论(0) 推荐(0)
摘要: const xhr = new XMLHttpRequest(); xhr.upload.onprogress = function(e) { // lengthComputable 是一个布尔值 判断当前资料是否可计算长度 if (e.lengthComputable) { // loaded 代 阅读全文
posted @ 2021-03-07 18:18 天使佳少 阅读(127) 评论(0) 推荐(0)
摘要: server { listen 80; server_name www.xxx.com; #前端域名 gzip on; #开启gzip压缩 gzip_min_length 1k; #设置对数据启用压缩的最少字节数 gzip_buffers 4 16k; gzip_http_version 1.0; 阅读全文
posted @ 2021-01-16 00:12 天使佳少 阅读(153) 评论(0) 推荐(0)
摘要: sudo su root 切换root ls 查看所有文件 unzip xxx.zip 解压文件zip nginx -s reload 重启 ESC 退出编辑 shift + : 等待输入命令 wq! w写入,q退出, !强制退出 nginx -t 是否安装 sudo yum install ngi 阅读全文
posted @ 2021-01-15 12:42 天使佳少 阅读(33) 评论(0) 推荐(0)
摘要: 1. npm install @vue/babel-preset-jsx @vue/babel-helper-vue-jsx-merge-props 2. .babelrc 文件配置 { "presets": ["@vue/babel-preset-jsx"] } 3. webpack文件配置 mo 阅读全文
posted @ 2021-01-12 15:44 天使佳少 阅读(826) 评论(0) 推荐(0)
摘要: fatal: Unable to create 'D:/code/fex/.git/index.lock': File exists windows:cd .gitdel index.lock linuxrm -f ./.git/index.lock 阅读全文
posted @ 2020-12-16 12:21 天使佳少 阅读(70) 评论(0) 推荐(0)
摘要: offsetLeft 相对于父元素定位 clientWidth 视图窗口的宽度 scrollWidth 实际页面的宽度 阅读全文
posted @ 2020-12-04 15:09 天使佳少 阅读(99) 评论(0) 推荐(0)
摘要: transform-orign:x y; //可以指定x y px值 transform-orign:left bottom; //可以使用left top right bottom 值 1.旋转时以哪里为中心 旋转 2.缩放时以哪里为中心 缩放 阅读全文
posted @ 2020-11-29 23:33 天使佳少 阅读(72) 评论(0) 推荐(0)