Get the App
SLTechnology News&Howtos  ›  Development  › 

How to use Hungarian nomenclature for jQuery

Shulou Source: shulou.com Published: 2022-06-01 04:19:26 10月04日 Update

This article mainly shows you "how jQuery uses Hungarian nomenclature". The content is simple and clear. I hope it can help you solve your doubts. Let me lead you to study and learn this article "how jQuery uses Hungarian nomenclature".

Use the Hungarian nomenclature

Prefix the variable with $to make it easy to identify the jQuery object.

/ / Bad var first = $('# first'); var second = $('# second'); var value = $first.val (); / / suggestion-prefix $var $first = $('# first') to the jQuery object; var $second = $('# second'), var value = $first.val (); these are all the contents of the article "how jQuery uses Hungarian nomenclature". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Tags: Hungary content article prefix object learning help bad variable suggestion easy to understand more organization knowledge editing industry information information channel channel don't Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS MariaDB Apple vpn Xiaomi