会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
xiaoyan
abc
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
···
16
下一页
2021年11月10日
css布局-中间内容居中,右侧内容可隐可显(看剩余宽度显示)
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi
阅读全文
posted @ 2021-11-10 00:08 abcdefgab
阅读(82)
评论(0)
推荐(0)
2021年11月7日
前端性能优化策略
摘要: 网络层面: 构建策略:基于构建工具(Webpack、Vite) 图像策略:基于图像类型(JPG、PNG、Base64) 分发策略:基于内容分发网络(CDN) 缓存策略:基于浏览器缓存(强缓存和协商缓存) webpack构建策略: 精确缩小打包范围(exclude、include) 配置编译cache
阅读全文
posted @ 2021-11-07 21:45 abcdefgab
阅读(98)
评论(0)
推荐(0)
2021年11月2日
docker-compose安装gitlab时进不去,页面访问失败
摘要: 
阅读全文
posted @ 2021-11-02 01:30 abcdefgab
阅读(724)
评论(0)
推荐(0)
2021年10月5日
vuex action has not type
摘要: 注意在vue3版本中不能写action,要写actions
阅读全文
posted @ 2021-10-05 23:35 abcdefgab
阅读(21)
评论(0)
推荐(0)
2021年10月1日
vite使用elementplus报css文件没找到
摘要: 解决:目录往上移一层,以前的目录已更改
阅读全文
posted @ 2021-10-01 10:09 abcdefgab
阅读(223)
评论(0)
推荐(0)
2021年9月4日
promise实现红绿灯
摘要: const fn = (color, wait) => { return new Promise((resolve, reject) => { setTimeout(() => { resolve() console.log(color); },wait); }) } async function
阅读全文
posted @ 2021-09-04 17:08 abcdefgab
阅读(180)
评论(0)
推荐(0)
2021年8月30日
http和https文章
摘要: 1.HTTPS用的是对称加密还是非对称加密?
阅读全文
posted @ 2021-08-30 17:51 abcdefgab
阅读(36)
评论(0)
推荐(0)
script标签中参数的正常、async和defer区别
摘要: defer会在DomContentLoad之后完成,async不保证script脚本的顺序,谁先加载完谁先渲染,阻塞html的渲染
阅读全文
posted @ 2021-08-30 14:37 abcdefgab
阅读(70)
评论(0)
推荐(0)
2021年8月29日
js实现千分位
摘要: function format(num) { return (num + '').replace(/(\d{1,3})(?=(\d{3})+(?:$|\.))/g, '$1,') } let nums = 12154631345643.2312 let res = format(nums) cons
阅读全文
posted @ 2021-08-29 23:00 abcdefgab
阅读(70)
评论(0)
推荐(0)
2021年8月27日
删除对象中的'' 、[]、{}
摘要: const obj = { a: 1, b: '2', c: [], // x d: { aa: 1, bb: '2', cc: '', // x dd: {} // x }, e: {} // x } const fn=(obj)=>{ if(Object.prototype.toString.c
阅读全文
posted @ 2021-08-27 16:52 abcdefgab
阅读(433)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
···
16
下一页
公告