标签:
1.一个简单的代码
function s(names){this.name=names;this.showname=functoin(){ alert(this.name);}} //工厂方式
new s("张三").showname(); // 函数中 ‘this‘ 的理解
2. 面向对象的定义、特点、 对象原型prototype
javascript 对象 工厂方式和构造函数
原文地址:http://www.cnblogs.com/lesbesgusyll/p/4569271.html