会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
全玉金生
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
5
6
7
8
9
10
11
12
13
···
87
下一页
2023年8月11日
form的submit阻止表单提交
摘要: 1. return false 方法 <form onsubmit="return onFormSubmit(this)"></form> //能阻止 <form onsubmit="onFormSubmit(this)"></form> //不能阻止 function onFormSubmit(f
阅读全文
posted @ 2023-08-11 10:00 全玉
阅读(454)
评论(0)
推荐(0)
2023年8月8日
环形对号加载动画收集
摘要: 1. 环形向内填充带进度,打对号带进度 <svg class="checkmark" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 52 52"> <circle class="checkmark__circle" cx="26" cy="26" r
阅读全文
posted @ 2023-08-08 15:41 全玉
阅读(83)
评论(0)
推荐(0)
可选链,空值合并,逻辑空等简化写法babel插件
摘要: 空值合并运算符(??)Nullish coalescing operator @babel/plugin-proposal-nullish-coalescing-operator 可选链运算符(?.) Optional chaining operator @babel/plugin-proposal
阅读全文
posted @ 2023-08-08 14:16 全玉
阅读(81)
评论(0)
推荐(0)
2023年8月4日
js的一些写法
摘要: 1. 用void 0代替undefined 不直接用undefined,因为undefined不是关键字,在函数中可以被变量占用,从而值发生变化,使用void(0)或void 0,还好写一些 2. 用Number.isNaN代替isNaN isNaN很坑,判断不准,如下 isNaN(undefine
阅读全文
posted @ 2023-08-04 11:01 全玉
阅读(35)
评论(0)
推荐(0)
2023年8月3日
webpack devServer代理打印日志
摘要: proxy: { '/api': { target: 'http://api.xxx.com', //去除api头,即去除context,不加pathRewrite,则不去除任何 pathRewrite: {'^/api': ''}, changeOrigin: true, logLevel: 'd
阅读全文
posted @ 2023-08-03 14:59 全玉
阅读(1799)
评论(0)
推荐(0)
2023年8月1日
关于fluent api的看法
摘要: fluent api看着挺顺溜的,之前一直很喜欢这种写法。例如superagent这个库 var request = require('superagent') request .post('/api/pet') .send({ name: 'Manny', species: 'cat' }) .s
阅读全文
posted @ 2023-08-01 17:02 全玉
阅读(72)
评论(0)
推荐(0)
2023年7月28日
不定高度的过渡动画
摘要: 方法1 max-height,高度不一致,时间不自然 方法2 clip-path:inset,支持transition,缺点,会占据空间,需设置绝对定位来清除空间 .content { ... height: auto; clip-path: inset(0 0 100% 0); } .fold:h
阅读全文
posted @ 2023-07-28 15:16 全玉
阅读(230)
评论(0)
推荐(0)
2023年7月25日
大json传输优化方法
摘要: 1. http流式传输 数据压缩 gzip、deflate、br 分块传输 Transfer-Encoding: chunked 范围请求 Range: bytes=0-100 多段数据 multipart/byteranges 分隔标记 boundary 类似于文件上传下载 2. json特有压缩
阅读全文
posted @ 2023-07-25 10:34 全玉
阅读(268)
评论(0)
推荐(0)
2023年7月24日
vscode遇到的坑
摘要: 1. Patelle插件默认会在所有项目生成.vsode文件夹 要关闭此行为,可以在插件设置项目路径
阅读全文
posted @ 2023-07-24 10:45 全玉
阅读(23)
评论(0)
推荐(0)
2023年7月23日
常用css颜色收集
摘要: 1. 几种柔和配色 蓝色 #A1E7FE 黄色 #FEEBB1 粉红色 #FAD8EC 绿色 #D5E394 橘黄色 #FBBA9C 蓝色1 #334B7B 蓝色2 #406FB7 豆沙绿 #D9E9DE 2. 中国传统色 3. 传统42色 3. 替代纯白或纯黑 替代纯黑:#111111 #1010
阅读全文
posted @ 2023-07-23 15:17 全玉
阅读(1068)
评论(0)
推荐(0)
上一页
1
···
5
6
7
8
9
10
11
12
13
···
87
下一页
公告