js中的prototype绝对是js的一个重要知识点,有点像delegate的模式,和oop对象形式还是有些差别的,尽管可以做同样的事情。
简要学习可以参见:https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Objects/Object_prototypes
关于js的class和java的语法很像,参见:
https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Objects/Classes_in_JavaScript
标签:en,JavaScript,js,javascript,prototype,class,developer From: https://www.cnblogs.com/saaspeter/p/17431555.html