摘要:
5 自定义类和对象 5.1 工厂方法 在ECMAScript中创建工厂方法,返回一个特定类型的对象,以此实现代码的简洁适用。 function createFruit() { var tempFruit = new Object; tempFruit.name = "apple"; tempFruit.number = 5; tempFruit.showName = functi... 阅读全文
posted @ 2006-10-03 18:14
javaca88
阅读(310)
评论(0)
推荐(0)

浙公网安备 33010602011771号