李战 · 2007-04-09 21:24:28 · 阅读: 635 桥接,不就是根据类名创建对象嘛,改成这样更简洁 function createObject(s) { return eval("new "+s) }