...... {a,b,... others} = myObject中的含义是什么意思?

时间:2015-10-18 20:06:11

标签: javascript reactjs typescript ecmascript-6

以下ES6 / Typescript / React片段中...语法中{onClick, onMouseover, ...others}的含义是什么?它在代码后面没有跟others变量。

componentWillUnmount() {
    {onClick, onMouseover, ...others} = this.props.listeners;

    _.each(others, function(listener) {
        PageStore.removeChangeListener(listener);
    });
}

0 个答案:

没有答案
相关问题