which of the following is used to solve the problem of enumerations in JavaScript? ------Generators
//写法1:
var ShareType = ...{OnlyMe : 0
,IAndFriend : 1
,All : 2
};
//写法2:
var ShareType = ...{};
ShareType.OnlyMe = 0;
ShareType.IAndFriend = 1;
ShareType.All = 2;