波比小金刚
波比小金刚
内存分配、编译
> 2018-08-21 (gitbook 弄来进不去了,把文章挪到这里更新)。 # 前言 skr~~ # 内存空间 内存空间一个常常被前端工程师忽视的知识点。 如果想要成为一个优秀的前端儿,必须对内存空间有了解。 这个章节将会整理内存空间的部分知识点,抛砖引玉,更多的内容需要你去了解底层的知识。 ## 一些误区 有一些常见的误区: 1. 前端工程师不需要了解内存空间的知识,因为我们有 GC。 2. GC 能够确保所有的 "垃圾" 都被准确的回收。 3. 分不清堆栈,堆栈就代表内存空间了。 4. 所有的基本类型都是存在栈中的,引用类型就是存在堆中的。 5. ..... 为了干掉这些误区,我们需要一步一步的学习相关的知识点。...
# 深浅拷贝 ... 巴拉巴拉 ... # 实现 看见有很多人分享他们的实现方式,五花八门,各显神通。 我也分享两种简单酷炫的方式: ## 1. 利用 history API 实现结构化克隆 ```js /*structuralClone easy way*/ const structuralClone = obj => { const oldState = history.state; history.replaceState(obj,...
thx! i like this repo. there a [list](https://stackoverflow.com/a/19883965) about all the result of `navigator.platform`. maybe we lost something about opera mini: - Pike v7.6 release 92: Opera Mini 5 on...
This is a great repository. Is it reasonable if the content in pr is represented by a constant?
👀 TODO?
希望能够知道这个项目目前的计划和 `TODO` 项,能够有相关的待办事项文档,可以参与进来,👀。 比如,是否会支持国际化?等
Maybe we also need another way to pass parameters. just like this: ```js const [, navigator] = useLocation(); navigate(path: string, replace?: boolean, state?: object); // and ``` @omgovich @molefrog
wondering what kind of feature drives everyone crazy? 😂
I was wondering if I could provide support for route switching animation, this is an interesting feature. 😄
thx, this is a great repo. i think, there may be should have a condition: `this.container.watchers.splice(index, 1);` otherwise, it's just delete the last wather.
- [x] I have searched the [issues](https://github.com/oct16/TimeCat/issues) of this repository and believe that this is not a duplicate. ### What problem does this feature solve? [FMP](https://github.com/oct16/TimeCat/blob/b2e7d5210e9f3ae61de6f9ef1c266e16bb4dd4b5/packages/player/src/utils/fmp.ts) is depcreated. so can...