上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 87 下一页
摘要: 1. return false 方法 <form onsubmit="return onFormSubmit(this)"></form> //能阻止 <form onsubmit="onFormSubmit(this)"></form> //不能阻止 function onFormSubmit(f 阅读全文
posted @ 2023-08-11 10:00 全玉 阅读(309) 评论(0) 推荐(0) 编辑
摘要: 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 全玉 阅读(36) 评论(0) 推荐(0) 编辑
摘要: 空值合并运算符(??)Nullish coalescing operator @babel/plugin-proposal-nullish-coalescing-operator 可选链运算符(?.) Optional chaining operator @babel/plugin-proposal 阅读全文
posted @ 2023-08-08 14:16 全玉 阅读(33) 评论(0) 推荐(0) 编辑
摘要: 1. 用void 0代替undefined 不直接用undefined,因为undefined不是关键字,在函数中可以被变量占用,从而值发生变化,使用void(0)或void 0,还好写一些 2. 用Number.isNaN代替isNaN isNaN很坑,判断不准,如下 isNaN(undefine 阅读全文
posted @ 2023-08-04 11:01 全玉 阅读(20) 评论(0) 推荐(0) 编辑
摘要: proxy: { '/api': { target: 'http://api.xxx.com', //去除api头,即去除context,不加pathRewrite,则不去除任何 pathRewrite: {'^/api': ''}, changeOrigin: true, logLevel: 'd 阅读全文
posted @ 2023-08-03 14:59 全玉 阅读(1014) 评论(0) 推荐(0) 编辑
摘要: fluent api看着挺顺溜的,之前一直很喜欢这种写法。例如superagent这个库 var request = require('superagent') request .post('/api/pet') .send({ name: 'Manny', species: 'cat' }) .s 阅读全文
posted @ 2023-08-01 17:02 全玉 阅读(31) 评论(0) 推荐(0) 编辑
摘要: 方法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 全玉 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 1. http流式传输 数据压缩 gzip、deflate、br 分块传输 Transfer-Encoding: chunked 范围请求 Range: bytes=0-100 多段数据 multipart/byteranges 分隔标记 boundary 类似于文件上传下载 2. json特有压缩 阅读全文
posted @ 2023-07-25 10:34 全玉 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 1. Patelle插件默认会在所有项目生成.vsode文件夹 要关闭此行为,可以在插件设置项目路径 阅读全文
posted @ 2023-07-24 10:45 全玉 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 1. 几种柔和配色 蓝色 #A1E7FE 黄色 #FEEBB1 粉红色 #FAD8EC 绿色 #D5E394 橘黄色 #FBBA9C 蓝色1 #334B7B 蓝色2 #406FB7 豆沙绿 #D9E9DE 2. 中国传统色 3. 传统42色 3. 替代纯白或纯黑 替代纯黑:#111111 #1010 阅读全文
posted @ 2023-07-23 15:17 全玉 阅读(276) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 87 下一页