上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 494 下一页
摘要: 使用插件 在 babel 要使用一个插件,步骤实际上非常简单,就分为两步: 安装插件 在配置文件或者 CLI 中指定插件 举个例子,例如有一个专门将箭头函数转为普通函数的插件: pnpm add @babel/plugin-transform-arrow-functions -D 之后在配置文件中进 阅读全文
posted @ 2025-01-16 20:53 Zhentiw 阅读(57) 评论(0) 推荐(0)
摘要: CLI 关于 babel 所提供的 CLI,你可以在 https://babeljs.io/docs/babel-cli 看到所有所支持的 CLI 命令。 要使用 CLI 命令,首先第一步是安装: pnpm add --save-dev @babel/core @babel/cli 注意在安装 @b 阅读全文
posted @ 2025-01-16 20:48 Zhentiw 阅读(26) 评论(0) 推荐(0)
摘要: Babel介绍 Babel 是一个编译器,主要用于将最新的 JavaScript 代码转化为向后兼容的代码,以便在老版本的浏览器或环境中运行。 例如,你可能在开发时使用了 ES6、ES7 或者更高级的 JavaScript 特性,但是有些浏览器可能并不支持这些新特性,这时就可以用 Babel 来将代 阅读全文
posted @ 2025-01-16 20:40 Zhentiw 阅读(51) 评论(0) 推荐(0)
摘要: 检查规则 这节课我们主要学习 ESLint 里面的规则相关的知识。规则是 ESLint 中一个比较重要的核心概念之一,因为究竟报不报错,是由规则来确定的。 规则的重要性 在 ESLint 中,本身可以配置规则的重要性,总共分为三个级别: off 或者 0: 关闭这条规则 warn 或者 1:这条规则 阅读全文
posted @ 2024-12-26 14:59 Zhentiw 阅读(102) 评论(0) 推荐(0)
摘要: Make an HTML table more readable on mobile devices by using the ::before pseudo-element. We add labels to each cell, so they appear like cards when th 阅读全文
posted @ 2024-12-23 16:30 Zhentiw 阅读(34) 评论(0) 推荐(0)
摘要: It's fairly trivial to create a React project, but there's always a big hurdle between creating it locally and making it shareable so that someone els 阅读全文
posted @ 2024-12-23 16:10 Zhentiw 阅读(22) 评论(0) 推荐(0)
摘要: Validating at form level Now that we know how to validate a single input field in our forms, let’s take it a step further and learn how to set up our 阅读全文
posted @ 2024-12-21 19:47 Zhentiw 阅读(48) 评论(0) 推荐(0)
摘要: Appropriate types In HTML we have a wide variety of input elements to craft our forms, but one element in particular rules them all. The catch-all inp 阅读全文
posted @ 2024-12-21 19:39 Zhentiw 阅读(42) 评论(0) 推荐(0)
摘要: The Input is Different than the Output We've reached the point with Zod where our input is different than our output. In other words, you can generate 阅读全文
posted @ 2024-12-21 19:19 Zhentiw 阅读(8) 评论(0) 推荐(0)
摘要: In this lesson, you'll learn how to implement smooth state transitions in your web applications using the browser's built-in View Transitions API. We' 阅读全文
posted @ 2024-12-09 15:49 Zhentiw 阅读(17) 评论(0) 推荐(0)
上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 494 下一页