mirror of
https://github.com/zh-google-styleguide/zh-google-styleguide.git
synced 2026-08-13 22:13:27 +08:00
Add manually generate PDF documents guideline
Add Javascript guide contents.rst
This commit is contained in:
13
google-javascript-styleguide/contents.rst
Normal file
13
google-javascript-styleguide/contents.rst
Normal file
@@ -0,0 +1,13 @@
|
||||
.. 请确保至少包含基本的 `toctree` 指令.
|
||||
|
||||
.. _javascript_contents:
|
||||
|
||||
Javascript 风格指南 - 内容目录
|
||||
==========================
|
||||
|
||||
.. toctree::
|
||||
|
||||
index
|
||||
background
|
||||
javascript_language_rules.rst
|
||||
javascript_style_rules.rst
|
||||
@@ -1,5 +1,5 @@
|
||||
Javascript语言规则
|
||||
==========
|
||||
Javascript语言规范
|
||||
=====================
|
||||
|
||||
var关键字
|
||||
----------------
|
||||
@@ -116,7 +116,7 @@ js语句要求以分号结尾,除非能够正确地推断分号的位置。在
|
||||
这个错误让人震惊,所以一定要确保用分号结束语句。
|
||||
|
||||
澄清:分号和函数
|
||||
~~~~~~~~~~~~~~
|
||||
~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
函数表达式后面要分号结束,但是函数声明就不需要。例如:
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
Javascript格式规则
|
||||
==================
|
||||
Javascript风格规范
|
||||
=====================
|
||||
|
||||
命名
|
||||
--------------
|
||||
|
||||
Reference in New Issue
Block a user