Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
front-document
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
huanglu
front-document
Commits
721bd203
Commit
721bd203
authored
Jun 02, 2020
by
huanglu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs: 完善文档
parent
d9ca7f94
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
前端规范.md
前端规范.md
+2
-0
No files found.
前端规范.md
View file @
721bd203
...
@@ -64,9 +64,11 @@
...
@@ -64,9 +64,11 @@
- jsx?/tsx? 规范
- jsx?/tsx? 规范
- 所有的js文件,使用小驼峰命名规则(如果需要,如果遵循目录规范,情况不多)
- 所有的js文件,使用小驼峰命名规则(如果需要,如果遵循目录规范,情况不多)
- 项目中判断等于,一律使用 全等(===),在判断字符串相等时,通过模板字符的方式判断
- 项目中判断等于,一律使用 全等(===),在判断字符串相等时,通过模板字符的方式判断
```javascript
```javascript
`${currentIndex}` === `${index}`
`${currentIndex}` === `${index}`
```
```
- 私有变量和方法,使用 `_` 标识
- 私有变量和方法,使用 `_` 标识
- 在html页面时,尽量使用语义化标签
- 在html页面时,尽量使用语义化标签
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment