JavaScript naming Grooming

Source: Internet
Author: User

JS naming finishing

function naming: verb or verb + noun form----fninit () object method Name: Fn+ object class name + verb + noun form----fnanimatedorun () an event response function named: fn+ Trigger Event object name + Event name or module name---- Fndivclick ()

Verb list

Get: Get Set: Set Add: Add remove delete Create creates destory Remove start start stop stop open open close close read Read write write load load save save Create destroy destroy begin end end backup restore restore Import export exported split split merge merge inject inject extract extract Attac H attachment detach out bind bind separate detach view view Browse Browser Edit modify Modify Select Select Mark Copy copy paste paste Undo Undo Redo Redo Insert Insert Delete Remove add join Append add clean Cleanup Clear Clear Index index sort sort find find search increase increase decrease reduce play play Pause pauses launch start run compile compile Execute debug debug trace trace Observe observe listen listen build build publish release input input output Output encode encoding decode decoding encrypt encryption decrypt decryption compress compression Decompress decompression Pack Package unpack unpack Parse parse emit generate connect connection disc Onnect Disconnect send upload upload receive download Download refresh refresh synchronize sync update update revert restore lock lock unlock unlock check ou Check-out t check in check-in submit submit commit delivery push pull expand expand collapse collapse begin start end end Start Finish Finish Enter Enter Exit Retreat Out abort quit quitting ObsolETE waste depreciate waste collect collect aggregate gather

JavaScript naming grooming

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.