例如下面这段代码
if (show1 && show2 && show3) {
return progress1 === 'success' && progress2 === 'success' && progress3 === 'success'
} else if (show1 && show2) {
return progress1 === 'success' && progress2 === 'success'
}...
我有什么更好的办法去写这个判断吗,像上文那种写法我还要判断 show2 && show3 或者 show1 && show3 等...
if (show1 && show2 && show3) {
return progress1 === 'success' && progress2 === 'success' && progress3 === 'success'
} else if (show1 && show2) {
return progress1 === 'success' && progress2 === 'success'
}...
我有什么更好的办法去写这个判断吗,像上文那种写法我还要判断 show2 && show3 或者 show1 && show3 等...

