1.作为对象的函数
var funcName = new Function (arguments,statements;);
var msg="\n 使用构造函数Function 构造函数 : \n\n";
var newFunc=new Function("result","alert(msg+' '+result)");
function Test()
{
{
newFunc("Welcome to JavaScript World!");
}var newFunc=new Function("result","alert(msg+' '+result)");
转载于:https://www.cnblogs.com/ylemzhang/archive/2010/12/29/1920897.html