×
思维导图备注
Google JavaScript Style Guide
首页
白天
夜间
小程序
阅读
书签
我的书签
添加书签
移除书签
2 Source file basics
来源:Google
浏览
496
扫码
分享
2019-12-20 20:42:21
2 Source file basics
2 Source file basics
2.1 File name
2.2 File encoding: UTF-8
2.3 Special characters
当前内容版权归
Google
或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问
Google
.
上一篇:
下一篇:
1 Introduction
1.1 Terminology notes
1.2 Guide notes
2 Source file basics
2.1 File name
2.2 File encoding: UTF-8
2.3 Special characters
3 Source file structure
3.1 License or copyright information, if present
3.2 @fileoverview JSDoc, if present
3.3 goog.module statement
3.4 ES modules
3.5 goog.setTestOnly
3.6 goog.require and goog.requireType statements
3.7 The file’s implementation
4 Formatting
4.1 Braces
4.2 Block indentation: +2 spaces
4.3 Statements
4.4 Column limit: 80
4.5 Line-wrapping
4.6 Whitespace
4.7 Grouping parentheses: recommended
4.8 Comments
5 Language features
5.1 Local variable declarations
5.2 Array literals
5.3 Object literals
5.4 Classes
5.5 Functions
5.6 String literals
5.7 Number literals
5.8 Control structures
5.9 this
5.10 Equality Checks
5.11 Disallowed features
6 Naming
6.1 Rules common to all identifiers
6.2 Rules by identifier type
6.3 Camel case: defined
7 JSDoc
7.1 General form
7.2 Markdown
7.3 JSDoc tags
7.4 Line wrapping
7.5 Top/file-level comments
7.6 Class comments
7.7 Enum and typedef comments
7.8 Method and function comments
7.9 Property comments
7.10 Type annotations
7.11 Visibility annotations
8 Policies
8.1 Issues unspecified by Google Style: Be Consistent!
8.2 Compiler warnings
8.3 Deprecation
8.4 Code not in Google Style
8.5 Local style rules
8.6 Generated code: mostly exempt
9 Appendices
9.1 JSDoc tag reference
9.2 Commonly misunderstood style rules
9.3 Style-related tools
9.4 Exceptions for legacy platforms
暂无相关搜索结果!
本文档使用
BookStack
构建
×
分享,让知识传承更久远
×
文章二维码
手机扫一扫,轻松掌上读
×
文档下载
普通下载
下载码下载(免登录无限下载)
你与大神的距离,只差一个APP
请下载您需要的格式的文档,随时随地,享受汲取知识的乐趣!
PDF
文档
EPUB
文档
MOBI
文档
温馨提示
每天每在网站阅读学习一分钟时长可下载一本电子书,每天连续签到可增加阅读时长
下载码方式下载:免费、免登录、无限制。
免费获取下载码
下载码
文档格式
PDF
EPUB
MOBI
码上下载
×
微信小程序阅读
您与他人的薪资差距,只差一个随时随地学习的小程序
×
书签列表
×
阅读记录
阅读进度:
0.00%
(
0/0
)
重置阅读进度