"EXTJS6 Study Notes" 1.8 Initial: ExtJS naming convention

Source: Internet
Author: User

Convention for

Description

Example

class

mycustomclass

   

base64

   

do not use underscores, hyphens, or any other non-alphanumeric characters.

   

   

.

toplevelnamespace.myclassname

   

   

   

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 is in CamelCase.

encodeusingmd5 (), gethtml ()

variables

variable should always is in CamelCase.

var isgoodname

  

  

var base64encoder

   

var SALARY = +

   

Private variables should begin with the underscore "_"

var _privatevariable

Properties

The CamelCase property should always be in the. Static properties should be capitalized.

Ext.MessageBox.YES = "YES"

From

"EXTJS6 Study Notes" 1.8 Initial: ExtJS naming convention

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.