2009年9月29日
摘要: 方法一:工厂方式--- 创建并返回特定类型的对象的 工厂函数 ( factory function ) function createCar(color,doors,mpg){ var tempCar = new Object; tempCar.color = color; tempCar.doors = doors; tempCar.mpg = mpg; tempCar.showCar = fu... 阅读全文
posted @ 2009-09-29 15:25 李辉明 阅读(487) 评论(0) 推荐(0) 编辑