摘要: 一,构造函数 // 大写字母开头一般都是构造函数 //创建构造函数 function Word(words){ this.words = words; } Word.prototype = { alert(){ alert(this.words); } } //创建实例 var w = new Wo 阅读全文
posted @ 2019-08-19 12:36 -小丑- 阅读(128) 评论(0) 推荐(0) 编辑