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;
