mirror of
https://github.com/KieSun/all-of-frontend.git
synced 2024-11-26 00:38:13 +08:00
Merge remote-tracking branch 'upstream/main'
# Conflicts: # README.md
This commit is contained in:
commit
e282f1a6b4
26
README.md
26
README.md
@ -56,6 +56,7 @@ JS 数据类型分为两大类及八种数据类型,注意别漏了 ES6 新增
|
|||||||
|
|
||||||
- [ ] 文档:
|
- [ ] 文档:
|
||||||
- [ ] [JavaScript 数据类型和数据结构](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures)
|
- [ ] [JavaScript 数据类型和数据结构](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures)
|
||||||
|
|
||||||
### 类型判断
|
### 类型判断
|
||||||
|
|
||||||
类型判断有好几种方式,分别为:
|
类型判断有好几种方式,分别为:
|
||||||
@ -83,11 +84,6 @@ JS 数据类型分为两大类及八种数据类型,注意别漏了 ES6 新增
|
|||||||
- [ ] [双等判断](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Equality)
|
- [ ] [双等判断](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Equality)
|
||||||
- [ ] 推荐文章
|
- [ ] 推荐文章
|
||||||
- [ ] [You Don't Know JS 书中关于类型转换的一章节](https://github.com/weiqinl/You-Dont-Know-JS-CN/blob/master/types%20%26%20grammar/ch4.md)
|
- [ ] [You Don't Know JS 书中关于类型转换的一章节](https://github.com/weiqinl/You-Dont-Know-JS-CN/blob/master/types%20%26%20grammar/ch4.md)
|
||||||
- [ ] [几种基本类型简单的类型转换](https://zh.javascript.info/type-conversions)
|
|
||||||
- [ ] [JavaScript 深入之头疼的类型转换(上)](https://github.com/mqyqingfeng/Blog/issues/159)
|
|
||||||
- [ ] [JavaScript 深入之头疼的类型转换(下)](https://github.com/mqyqingfeng/Blog/issues/164)
|
|
||||||
|
|
||||||
> 务必自己总结规则!
|
|
||||||
|
|
||||||
### this
|
### this
|
||||||
|
|
||||||
@ -125,13 +121,29 @@ JS 数据类型分为两大类及八种数据类型,注意别漏了 ES6 新增
|
|||||||
- [ ] [You Don't Know JS Yet: Scope & Closures](https://github.com/getify/You-Dont-Know-JS/tree/2nd-ed/scope-closures)
|
- [ ] [You Don't Know JS Yet: Scope & Closures](https://github.com/getify/You-Dont-Know-JS/tree/2nd-ed/scope-closures)
|
||||||
- [ ] [The battle between function scope and block scope](https://www.deadcoderising.com/2017-04-11-es6-var-let-and-const-the-battle-between-function-scope-and-block-scope/)
|
- [ ] [The battle between function scope and block scope](https://www.deadcoderising.com/2017-04-11-es6-var-let-and-const-the-battle-between-function-scope-and-block-scope/)
|
||||||
|
|
||||||
|
### 事件循环
|
||||||
|
|
||||||
|
大家都知道 JS 是一门单线程的非阻塞的脚本语言。这也就意味着,代码在执行的任何时候只有一个主线程来处理所有的任务。所以弄懂事件循环机制对我们学习 JS 至关重要。
|
||||||
|
|
||||||
|
- [ ] 文档
|
||||||
|
- [ ] [事件循环](https://developer.mozilla.org/en-US/docs/Web/JavaScript/EventLoop)
|
||||||
|
- [ ] 推荐文章
|
||||||
|
- [ ] [这一次,彻底弄懂 JavaScript 执行机制](https://juejin.cn/post/6844903512845860872)
|
||||||
|
- [ ] [一次弄懂Event Loop](https://juejin.cn/post/6844903764202094606)
|
||||||
|
- [ ] [JavaScript 的工作原理](https://blog.sessionstack.com/how-javascript-works-event-loop-and-the-rise-of-async-programming-5-ways-to-better-coding-with-2f077c4438b5),需自备梯子,另有 [中文翻译版](https://github.com/Troland/how-javascript-works/blob/master/event-loop.md)。
|
||||||
|
- [ ] 事件循环可视化
|
||||||
|
- [ ] [Loupe](http://latentflip.com/loupe/?code=JC5vbignYnV0dG9uJywgJ2NsaWNrJywgZnVuY3Rpb24gb25DbGljaygpIHsKICAgIHNldFRpbWVvdXQoZnVuY3Rpb24gdGltZXIoKSB7CiAgICAgICAgY29uc29sZS5sb2coJ1lvdSBjbGlja2VkIHRoZSBidXR0b24hJyk7ICAgIAogICAgfSwgMjAwMCk7Cn0pOwoKY29uc29sZS5sb2coIkhpISIpOwoKc2V0VGltZW91dChmdW5jdGlvbiB0aW1lb3V0KCkgewogICAgY29uc29sZS5sb2coIkNsaWNrIHRoZSBidXR0b24hIik7Cn0sIDUwMDApOwoKY29uc29sZS5sb2coIldlbGNvbWUgdG8gbG91cGUuIik7!!!PGJ1dHRvbj5DbGljayBtZSE8L2J1dHRvbj4%3D)
|
||||||
|
- [ ] [几种基本类型简单的类型转换](https://zh.javascript.info/type-conversions)
|
||||||
|
- [ ] [JavaScript 深入之头疼的类型转换(上)](https://github.com/mqyqingfeng/Blog/issues/159)
|
||||||
|
- [ ] [JavaScript 深入之头疼的类型转换(下)](https://github.com/mqyqingfeng/Blog/issues/164)
|
||||||
|
|
||||||
## 跨端框架
|
## 跨端框架
|
||||||
|
|
||||||
跨端的最主要的含义就是一套代码多端运行,减少重复劳动
|
跨端的最主要的含义就是一套代码多端运行,减少重复劳动
|
||||||
|
|
||||||
目前看来,国内比较流行的是`小程序, H5, app`三端跨的框架, uniapp跟taro是其中做的比较出彩的两个框架,当然在taro3.0之前(以下主要是说小程序),taro跟uniapp都是使用编译时做更多的事情,编译成小程序能够运行的代码
|
目前看来,国内比较流行的是小程序, H5, App 三端跨的框架, [uniapp](https://github.com/dcloudio/uni-app) 及 [taro](https://github.com/NervJS/taro) 是其中做的比较出彩的两个框架。当然在 taro3.0 之前(以下主要是说小程序),taro 跟 uniapp 都是使用编译时做更多的事情,编译成小程序能够运行的代码。
|
||||||
|
|
||||||
而在taro3.0之后,与remax的相同的思想,在运行时做更多的事情,保证了原框架代码能够完全使用,而不需要为了转换成其他小程序时做兼容
|
而在 taro3.0 之后变成了与 [remax](https://github.com/remaxjs/remax) 相同的思想,在运行时做更多的事情,保证了原框架代码能够完全使用,而不需要为了转换成其他小程序时做兼容。
|
||||||
|
|
||||||
- [ ] [awesome-remax](https://github.com/remaxjs/awesome-remax)
|
- [ ] [awesome-remax](https://github.com/remaxjs/awesome-remax)
|
||||||
- [ ] [美团自研react跨端](https://tech.meituan.com/2021/06/10/react-native-hybrid-practice-dsl-in-meituan.html)
|
- [ ] [美团自研react跨端](https://tech.meituan.com/2021/06/10/react-native-hybrid-practice-dsl-in-meituan.html)
|
||||||
|
Loading…
Reference in New Issue
Block a user