if(...) {
return 'toto'
}else {
return 'titi'
}
如果 if 有返回值,可以这样写
if(...) {
return 'toto'
}
return 'titi'
if(...) {
return 'toto'
}else {
return 'titi'
}
如果 if 有返回值,可以这样写
if(...) {
return 'toto'
}
return 'titi'