有没有办法在变量中使用字符串来引用对象属性?

Is there a way to use a string inside of a variable to refer to an object property?

基本上我想用一个对象来保存某些日期。例如:

var date {
  jan26: 'Today this happened'
};

然后获取当前日期并将其放入字符串中。例如:var today = 'jan26';。然后用它来引用对象属性:例如:alert(date.today);有没有办法做到这一点?

使用以下代码: date[today]