方乖乖
  • 学习
  • 菜谱
  • 生活

方乖乖

记录我的生活,留下美好

underscore 系列之实现一个模板引擎(下)

underscore 系列之实现一个模板引擎(下)

2024-06-02 fxvas

前言 本篇接着上篇 underscore 系列之实现一个模板引擎(上)。 鉴于本篇涉及的知识点太多,我们先来介绍下会用到的知识点。 反斜杠的作用 var txt…

Read More Read More

underscore 系列之字符实体与 _.escape

underscore 系列之字符实体与 _.escape

2024-06-02 fxvas

前言 underscore 提供了 _.escape 函数,用于转义 HTML 字符串,替换 &, <, >, “, &#821…

Read More Read More

underscore 的源码该如何阅读?

underscore 的源码该如何阅读?

2024-06-02 fxvas

前言 别名:《underscore 系列 8 篇正式完结!》 介绍 underscore 系列是我写的第三个系列,前两个系列分别是 JavaScript 深入系…

Read More Read More

ES6 系列之 let 和 const

ES6 系列之 let 和 const

2024-06-02 fxvas

块级作用域的出现 通过 var 声明的变量存在变量提升的特性: if (condition) { var value = 1; } console.log(va…

Read More Read More

ES6 系列之 Babel 将 Generator 编译成了什么样子

ES6 系列之 Babel 将 Generator 编译成了什么样子

2024-06-02 fxvas

前言 本文就是简单介绍下 Generator 语法编译后的代码。 Generator function* helloWorldGenerator() { yie…

Read More Read More

ES6 系列之 Babel 将 Async 编译成了什么样子

ES6 系列之 Babel 将 Async 编译成了什么样子

2024-06-02 fxvas

前言 本文就是简单介绍下 Async 语法编译后的代码。 Async const fetchData = (data) => new Promise((r…

Read More Read More

Posts navigation

OLDER POSTS
NEWER POSTS
2025 年 8 月
一 二 三 四 五 六 日
 123
45678910
11121314151617
18192021222324
25262728293031
« 6 月    

人生如逆水行舟,不进则退;勇于披荆斩棘,方能开创自己的一片天地。

© 2025 | 粤ICP备2024258906号