ECMAScript面向对象(一)

1.什么是对象?面向对象又是什么?html 对象:将现实中的对象,经过用一组无序数据和一组操做方法来对其进行抽象的描述出来,做为一个相互依存的总体。程序员 function Annimals(){ this.class="Cat"; this.voice="miao"; this.eat=function(){console.log('eat.......');};
相关文章
相关标签/搜索