Programming OOP in Javascript - Properly

后端 未结 6 1388
旧时难觅i
旧时难觅i 2021-02-06 10:46

I\'m interesting in improving my javascript code to be properly OOP.... currently I tend to do something like this:

jQuery(document).ready(function () {
    Page         


        
6条回答
  •  执笔经年
    2021-02-06 11:21

    Some good sources for Object-Oriented JavaScript and JavaScript in general...

    Online Articles

    • How to "properly" create a custom object in JavaScript?
    • https://developer.mozilla.org/en/Introduction_to_Object-Oriented_JavaScript
    • http://mckoss.com/jscript/object.htm
    • http://ejohn.org/blog/simple-javascript-inheritance/
    • JavaScript: How To Get Private, Privileged, Public And Static Members (Properties And Methods)

    Books

    • JavaScript: The Good Parts - Douglas Crockford
    • Object-Oriented JavaScript - Stoyan Stefanov

    I hope this helps.
    Hristo

提交回复
热议问题