2009-11-25 5 views

답변

18

사용 브래킷 표기법을 대신.

var name = otherObject.name; 
var o = {}; 
o[name] = otherObject;