-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
项目开发规范和风格指南 #25
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
项目开发规范和风格指南
为什么要制定开发规范?
Vue
JavaScript
对象键值速记
使用对象多个属性时对对象进行结构,数组同
使用默认参数语法,而不是改变函数参数
将变量分配到需要的位置,但将它们放在合理的位置
对布尔值使用快捷方式,但对字符串和数字使用显式比较。
三元组不应嵌套,通常为单行表达式
避免不必要的三元语句
不要使用选择运算符代替控制语句
CSS
Use :not() to Apply/Unapply Borders on Navigation
函数式编程
纯函数:
减少副作用方法:
可变性和不可变性:
方法链:
文章推荐
你已经是一个成熟的码农了,这些思维习惯你要有
前端工程师都有哪些靠谱的小工具
css黑魔法小技巧
The text was updated successfully, but these errors were encountered: