上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 87 下一页
摘要: 1. 使用attr引用父元素属性 <li data-name="小明"> li::after { content: attr(data-name); } 2. 非content属性可以直接引用css变量 <li style="--width: '40px'"></li> li::after { co 阅读全文
posted @ 2023-06-02 13:34 全玉 阅读(99) 评论(0) 推荐(0) 编辑
摘要: // 基于单key或无key去重,单key一般是对象的id,无key就是元素本身是非对象 export function uniqueArr(arr, key){ let res; if(key){ res = [...new Map(arr.map(t => [t[key], t])).value 阅读全文
posted @ 2023-06-01 15:22 全玉 阅读(11) 评论(0) 推荐(1) 编辑
摘要: first-of-type, last-of-type, nth-of-type, nth-last-of-type 选择器的用法和我们想象的不一样,可以说是不合常理它们的用法相同,就以 nth-of-type 举例 :nth-of-type(1) 选择同类型标签元素的第1个 p:nth-of-ty 阅读全文
posted @ 2023-05-30 14:46 全玉 阅读(33) 评论(0) 推荐(0) 编辑
摘要: 1. 表单控件的form属性 <form id="user_form" method="get"> </form> <div> 年龄: <input name="age" form="user_form"></> </div> 外部元素可以与非父级表单关联表单提交,可以携带表单外部元素的值 2. 提 阅读全文
posted @ 2023-05-29 17:56 全玉 阅读(39) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv 阅读全文
posted @ 2023-05-17 17:08 全玉 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 1. 无参绑定 <div onclick="onClick()" ></div> 2. 传入源dom对象 <div onclick="onClick(this)" ></div> 3. 传入事件对象 <div onclick="onClick(event)" ></div> 阅读全文
posted @ 2023-05-15 09:11 全玉 阅读(276) 评论(0) 推荐(0) 编辑
摘要: 1. web components 不能自闭合,例如 <fat-page-item />这样不行,如果后面有拼接的话,它会嵌套后面的内容 2. web components 的attribute必须小写,否则在attributeChangedCallback中监听不到变化 阅读全文
posted @ 2023-05-12 10:00 全玉 阅读(9) 评论(0) 推荐(0) 编辑
摘要: /// /// Splits a collection of objects into n pages with an (for example, if I have a list of 45 shoes and say 'shoes.Split(5)' I will now have 4 page 阅读全文
posted @ 2023-04-20 14:32 全玉 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 1. jeecgboot-vue3的表格组件,使用的ant-design-vue的2.x版本的组件,其字典字段,页面首次加载,当字段在可视范围内,可正常显示,超出可视范围,即需要横向滚动条拉动,则不能正常显示字段 2. uniap的onShow周期,选择图片,在chrome的手机模拟器中不会触发on 阅读全文
posted @ 2023-04-19 16:17 全玉 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 亲测有效 今天早上一来,跟往常一样 pull代码,结果出错了。 GitLab: Your account has been blocked.fatal: Could not read from remote repository. 原因:查了半天,只是说git服务器上有人修改配置了,或者账号异常等等 阅读全文
posted @ 2023-04-12 15:16 全玉 阅读(608) 评论(0) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 87 下一页