前端代码格式化工具 Prettier
- 授权协议: MIT
- 开发语言: JavaScript
- 操作系统: 跨平台
- 软件首页: https://prettier.io/playground/
- 软件文档: https://github.com/prettier/prettier
- 官方下载: https://github.com/prettier/prettier
软件介绍
Prettier 是一个“有主见”的代码格式化工具,支持列表如下:
简而言之,这个工具能够使输出代码保持风格一致。
示例:
举个例子,对于下面这行代码:
foo(arg1, arg2, arg3, arg4);
它适合在同一行显示。但是我们经常会遇到的代码是这样的:
foo(reallyLongArg(), omgSoManyParameters(), IShouldRefactorThis(), isThereSeriouslyAnotherOne());
于是,Prettier 会把这段代码转变成这样:
foo( reallyLongArg(), omgSoManyParameters(), IShouldRefactorThis(), isThereSeriouslyAnotherOne() );
Head Rush Ajax
Brett McLaughlin、Eric Freeman、Elisabeth Freeman / O'Reilly Media, Inc. / 2006-03-01 / USD 34.99
Ajax, or Asynchronous JavaScript and XML, is a term describing the latest rage in web development. Ajax is used to create interactive web applications with XML-based web services, and using JavaScript......一起来看看 《Head Rush Ajax》 这本书的介绍吧!
