new Browser() 是说明?

来源:百度知道 编辑:UC知道 时间:2024/05/30 21:00:53
在javascript中 new Browser() 是说明呢?

好像是定一个函数。但是实际上这是定一个JavaScript中的用户自定义对象,不过这里是个匿名类。

是不是类似这样的东西。
var foo02 = new function()
{
var temp = 100;
this.temp = 200;
return temp + this.temp;
}
alert(typeof(foo02));
alert(foo02.constructor());

去这里参考以下:

http://www.jb51.net/html/200703/23/7955.htm