How to use Hungarian nomenclature for jQuery
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!