js收集

Test=function()   
{      
    this.Top = 100;
    this.Left = 200;
}
var a=new Test();
alert(a.Top);

function Test()   
{      
    return {"Top":100,"Left":200};   
}
var a = Test();
alert(a.Top);
原文地址:https://www.cnblogs.com/ulex/p/1527938.html