case ‘toggleTodo’ :
return (
state.map( (one) =>
oneTodo( one, action )
)
);
等于:
case 'toggleTodo' : return ( state.map( (one) => { return oneTodo( one, action ) }) );
欢迎分享,转载请注明来源:内存溢出
case ‘toggleTodo’ :
return (
state.map( (one) =>
oneTodo( one, action )
)
);
等于:
case 'toggleTodo' : return ( state.map( (one) => { return oneTodo( one, action ) }) );
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)