내가 개체가 개체에없는 개체의 속성을 병합 :Lodash 이미
var props = {//values here};
this.options: {
cssSelectorAncestor: props.cssSelectorAncestor,
media: {
autoPlay: props.autoPlay,
muted: props.muted
}
}
this.options = _.merge(
{
defaultPlaybackRate: 1.0,
minPlaybackRate: 0.5
}, props);
을 어떻게 이미 옵션에 할당 된 사람에서 떨어져 소품 의 모든 속성을 병합 않습니다.
소품을 변경할 수 없음을 고려하십시오.