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