2021年8月3日

摘要: CDN在应用层 阅读全文
posted @ 2021-08-03 17:28 人鱼之森 阅读(24) 评论(0) 推荐(0) 编辑

2021年8月2日

摘要: IE(除去IE8),对小数像素采取取整的策略,类似于Math.floor属性 Firefox采取四舍五入的策略, 类似于Math.round属性 IE8浏览器下对于小数的解析与Firefox,Choreme等浏览器一致 阅读全文
posted @ 2021-08-02 14:49 人鱼之森 阅读(306) 评论(0) 推荐(0) 编辑

2021年8月1日

摘要: 1、useRef和createRef之间的区别 阅读全文
posted @ 2021-08-01 23:02 人鱼之森 阅读(33) 评论(0) 推荐(0) 编辑

2021年6月24日

摘要: 官方有文档,但是文档只是说了个大概,具体到细节里面的一些修改配置或者遇到的坑,我都在这里记录一下 1、使用 很简单,直接看官网,通过umi的方式把ant design pro给创建好 2、路由的修改 3、token的增加 4、消息推送 (慢慢更新吧) 阅读全文
posted @ 2021-06-24 13:29 人鱼之森 阅读(320) 评论(0) 推荐(0) 编辑

2021年6月16日

摘要: 解决办法: 1、git fetch 2、git branch -a 3、切换到分支 git删除远程连接地址 git remote -v 查看 git remote remove 查看后的地址 阅读全文
posted @ 2021-06-16 10:22 人鱼之森 阅读(911) 评论(0) 推荐(0) 编辑

2021年5月25日

摘要: import React from 'react'; import ReactDOM, { createPortal } from 'react-dom'; import './index.css'; // import App from './App'; // import Content fro 阅读全文
posted @ 2021-05-25 21:34 人鱼之森 阅读(324) 评论(0) 推荐(0) 编辑
摘要: 1、为了重复使用CSS,例子如下: .my-inline-block() { display: inline-block; font-size: 0; } .thing1 { .my-inline-block; } .thing2 { .my-inline-block; } 注:来自less的官网h 阅读全文
posted @ 2021-05-25 20:50 人鱼之森 阅读(193) 评论(0) 推荐(0) 编辑

2021年5月13日

摘要: 阅读全文
posted @ 2021-05-13 14:24 人鱼之森 阅读(38) 评论(0) 推荐(0) 编辑

2021年5月12日

摘要: class PubSub { constructor() { this.handles = {} } // 发布事件 on(eventType, handle) { if(!this.handles.hasOwnProperty(eventType)) { this.handles[eventTyp 阅读全文
posted @ 2021-05-12 16:01 人鱼之森 阅读(59) 评论(0) 推荐(0) 编辑
摘要: // 主题 class Dep { constructor(callback) { this.subs = [] // 主题的订阅者 this.callback = callback // console.log('callback', callback) } // 添加订阅者 addSub(sub 阅读全文
posted @ 2021-05-12 11:24 人鱼之森 阅读(49) 评论(0) 推荐(0) 编辑