05 2022 档案

摘要:CSS content 如果直接输入中文会有概率出现乱码,一个解决方法是将中文转成 unicode 例如 “请选择” 转 unicode 码是 \u8bf7\u9009\u62e9,注意,写到 CSS 里面需要把 u 去掉,即 \8bf7\9009\62e9 阅读全文
posted @ 2022-05-17 20:34 尹宇星_Kim 阅读(883) 评论(0) 推荐(1)
摘要:const map = new Map([['a', 1],['b', 2]]) const first = new Map([ [1, 'one'], [2, 'two'], [3, 'three'], ]); const second = new Map([ [1, 'uno'], [2, 'd 阅读全文
posted @ 2022-05-12 20:49 尹宇星_Kim 阅读(2382) 评论(0) 推荐(0)
摘要:假设有如下的多入口配置 module.exports = { pages: { index: { // page 的入口 entry: 'src/index/main.js', // 模板来源 template: 'public/index.html', // 在 dist/index.html 的 阅读全文
posted @ 2022-05-10 20:09 尹宇星_Kim 阅读(336) 评论(0) 推荐(0)
摘要:当使用 window.location.replace 或 window.location.href 控制页面跳转的时候,会等当前宏任务走完再跳转。 也就是说,控制跳转代码后面的同步代码会执行,Promise 创建的微任务也会执行,但 setTimeout 创建的任务就不会执行了。 阅读全文
posted @ 2022-05-10 17:34 尹宇星_Kim 阅读(1258) 评论(0) 推荐(0)
摘要:最有感触的一句话 互联网公司最怕的就是业务比技术跑的快 技术提升 算法:LeetCode 坚持一个月(虽然完全独立完成的只有 60% 左右) 阅读:《TypeScript 入门与实战》、《CSS 权威指南》、《Getting Started with Web Components》 课程:《说透低代 阅读全文
posted @ 2022-05-01 22:10 尹宇星_Kim 阅读(60) 评论(0) 推荐(0)