Object

使用 Object.create 方法 对象也可以用 Object.create() 方法创建。该方法非常有用,因为它允许你为创建的对象选择一个原型对象,而不用定义构造函数。 // Animal properties and method encapsulation var Animal = { t
posted @ 2020-05-26 10:12  LaLaLa_heng  阅读(132)  评论(0编辑  收藏  举报