Is there a “right” way to do inheritance in JavaScript? If so, what is it?

后端 未结 5 856
再見小時候
再見小時候 2021-02-02 02:32

I have been trying to learn how to add testing to existing code -- currently reading reading Working Effectively With Legacy Code. I have been trying to apply some of the princ

5条回答
  •  南方客
    南方客 (楼主)
    2021-02-02 03:18

    Also check out Dean Edwards' Base.js. You can have a look at it here, the blog post is self-explanatory.

提交回复
热议问题