diff --git a/README.chinese.md b/README.chinese.md index 931c74b2..4ed66896 100644 --- a/README.chinese.md +++ b/README.chinese.md @@ -204,7 +204,7 @@

-## ![✔] 2.11 快速查错,验证参数使用一个专门的库Fail fast, validate arguments using a dedicated library +## ![✔] 2.11 快速查错,验证参数使用一个专门的库 **TL;DR:** 这应该是您的Express最佳实践中的一部分 – assert API输入避免难以理解的漏洞,这类漏洞以后会非常难以追踪。而验证代码通常是一件乏味的事情,除非使用一些非常炫酷的帮助库比如Joi。 @@ -319,7 +319,7 @@

-## ![✔] 3.9 在文件夹上 require ,而不是直接在文件上 +## ![✔] 3.9 require 文件夹,而不是文件 **TL;DR:** 当在一个文件夹中开发库/模块,放置一个文件index.js暴露模块的 内部,这样每个消费者都会通过它。这将作为您模块的一个接口,并使未来的变化简单而不违反规则。 @@ -1023,4 +1023,4 @@ This repository is being kept up to date thanks to the help from the community. ⭐ [Kyle Martin](https://github.com/js-kyle) ⭐ [Keith Holliday](https://github.com/TheHollidayInn) -

\ No newline at end of file +