What is the Camel labeling method?

Source: Internet
Author: User
Tags what constant

Camel English means the meaning of camels, in our programming it is to do ' camel spelling ', also known as the ' hump law '.

Camel's All-English writing is CamelCase, and the rest is literally intuitive to understand.

CamelCase refers to the spelling of words in English, depending on the capitalization of the word, such as:

Navywang,backcolor These compound words, the latter word is written in uppercase;

In fact, in English, this way of writing is not allowed, but in the process of programming, we can see everywhere, often contact, what variables, what constant, what method, what function, what name, what object ... Wait, everywhere. Can say, but often we usually see every day, really want to say a camel mark method is what method, ho, what? A full question mark ...

To give an example: HTML5 to a div background color change, CSS inside is written like this: Background-color:yellow, and JS inside can not write like this: it is: backgroundcolor:green;

Camel is called ' Camel orthography ' because the case-sensitivity makes the compound appear bump (blocky), looks like a hump, has a high and low;

What is the Camel labeling method?

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.