创建函数还有一种方法

var add = new Function("x", "y", "return(x+y)");
alert(add(2,3));

posted @ 2012-09-14 09:39  陆航  阅读(127)  评论(0编辑  收藏  举报