上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 499 下一页
摘要: 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 阅读(42) 评论(0) 推荐(0)
摘要: Babel介绍 Babel 是一个编译器,主要用于将最新的 JavaScript 代码转化为向后兼容的代码,以便在老版本的浏览器或环境中运行。 例如,你可能在开发时使用了 ES6、ES7 或者更高级的 JavaScript 特性,但是有些浏览器可能并不支持这些新特性,这时就可以用 Babel 来将代 阅读全文
posted @ 2025-01-16 20:40 Zhentiw 阅读(75) 评论(0) 推荐(0)
摘要: 检查规则 这节课我们主要学习 ESLint 里面的规则相关的知识。规则是 ESLint 中一个比较重要的核心概念之一,因为究竟报不报错,是由规则来确定的。 规则的重要性 在 ESLint 中,本身可以配置规则的重要性,总共分为三个级别: off 或者 0: 关闭这条规则 warn 或者 1:这条规则 阅读全文
posted @ 2024-12-26 14:59 Zhentiw 阅读(139) 评论(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 阅读(44) 评论(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 阅读(44) 评论(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 阅读(66) 评论(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 阅读(66) 评论(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 阅读(14) 评论(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 阅读(38) 评论(0) 推荐(0)
摘要: var a = { n: 1 }; var b = a; a.x = a = { n: 2 }; console.log(a.x); // undefined console.log(b.x); // {n: 2} Javascript see the following code, mainly 阅读全文
posted @ 2024-12-09 15:17 Zhentiw 阅读(46) 评论(0) 推荐(0)
上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 499 下一页