馬老師 apollo 配置中心
for(propName in config) {
? ? ?if(hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
? ? ?props[propName] = config[propName];
? ?}
? ?}
?}
?
?// 獲取 props children
?const childrenLength = arguments.length - 2;
?if(childrenLength === 1) {
? ?props.children = children;
標簽: