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);