惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Help Net Security
Help Net Security
G
Google Developers Blog
雷峰网
雷峰网
WordPress大学
WordPress大学
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Engineering at Meta
Engineering at Meta
Security Latest
Security Latest
T
Threat Research - Cisco Blogs
AWS News Blog
AWS News Blog
F
Full Disclosure
C
Cybersecurity and Infrastructure Security Agency CISA
T
The Exploit Database - CXSecurity.com
J
Java Code Geeks
U
Unit 42
C
Cyber Attacks, Cyber Crime and Cyber Security
V
V2EX
C
Cisco Blogs
博客园 - 司徒正美
Project Zero
Project Zero
L
LINUX DO - 热门话题
阮一峰的网络日志
阮一峰的网络日志
Blog — PlanetScale
Blog — PlanetScale
Scott Helme
Scott Helme
A
About on SuperTechFans
Hugging Face - Blog
Hugging Face - Blog
S
Securelist
小众软件
小众软件
aimingoo的专栏
aimingoo的专栏
S
Schneier on Security
G
GRAHAM CLULEY
酷 壳 – CoolShell
酷 壳 – CoolShell
Cyberwarzone
Cyberwarzone
MongoDB | Blog
MongoDB | Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 叶小钗
T
Threatpost
Recorded Future
Recorded Future
C
CXSECURITY Database RSS Feed - CXSecurity.com
宝玉的分享
宝玉的分享
N
News and Events Feed by Topic
人人都是产品经理
人人都是产品经理
The Register - Security
The Register - Security
S
Security Archives - TechRepublic
博客园 - Franky
N
News | PayPal Newsroom
Simon Willison's Weblog
Simon Willison's Weblog
S
SegmentFault 最新的问题
W
WeLiveSecurity
A
Arctic Wolf
B
Blog

博客园 - 宁#宁

【extjs6学习笔记】1.16 初始: 关于主题 【extjs6学习笔记】0.4 准备: 书籍与文档 【extjs6学习笔记】0.3 准备: 类库结构2 【extjs6学习笔记】1.14 初始: ViewModel 【extjs6学习笔记】1.13 初始: 模型 【extjs6学习笔记】1.15 初始: 关于build 【extjs6学习笔记】1.11 初始: config 【extjs6学习笔记】1.12 初始: Working with DOM 【extjs6学习笔记】1.10 初始: 定义类 【extjs6学习笔记】1.9 初始: Mixins 【extjs6学习笔记】1.7 初始:加载第三方库 - 宁#宁 【extjs6学习笔记】1.6 初始:本地化 【extjs6学习笔记】0.1 准备:基础概念(02) 【extjs6学习笔记】1.5 初始:关于布局 【extjs6学习笔记】1.4 初始:ajax请求django应用 【extjs6学习笔记】Mastering Ext JS, 2nd Edition 【extjs6学习笔记】1.3 初始:根据模板创建项目 【extjs6学习笔记】1.2 初始:MVC MVVM 【extjs6学习笔记】1.1 初始:创建项目
【extjs6学习笔记】1.8 初始: ExtJS命名约定
宁#宁 · 2017-05-28 · via 博客园 - 宁#宁

Convention for

Description

Example

Class

类名应该在CamelCase中

MyCustomClass

类名应包含字母数字字符。 如果属于技术术语,则允许使用数字。

Base64

不要使用下划线,连字符或任何其他非字母数字字符。

类名应至少包含一个由dot(.)分隔的唯一命名空间。

TopLevelNamespace.MyClassName

不由Sencha分发的类不应该使用Ext作为顶级命名空间。

顶级命名空间和实际的类名应该在CamelCase中,其他的都应该是小写的。

TopNamespace.middnamespace.CustomClass

Source File

类的名称直接映射到存储它们的文件路径。 因此,每个文件只能有一个类

Ext.util.Observable is stored in path/to/src/Ext/util/Observable.js MyTopLevelNamespace.util.JsonToXml is tored in path/to/src/MyTopLevelNamespace/util/ JsonToXml.js

Methods

Method should always be in camelCase.

encodeUsingMd5(), getHtml()

Variables

Variable should always be in camelCase.

var isGoodName

var base64Encoder

常数变量应大写

var SALARY = 1000

私有变量应以下划线"_"开头

var _privateVariable

Properties

属性应该始终在camelCase中。 静态属性应大写。

Ext.MessageBox.YES = "Yes"

来自 <http://www.extjs-tutorial.com/extjs/naming-convention>

posted @ 2017-05-28 23:54  宁#宁  阅读(293)  评论()    收藏  举报