日期:2014-05-16  浏览次数:20405 次

JSON应用场景之一:多返回值
function point(left,top){
this.left = left;
this.right = right;
return {x:this.left,y:this.right};
}

var pos = point(23,25);
pos.x = 23;
pos.y = 25;