是否可以在 CoffeeScript 中简化:
redisSETNXReply.toString() == '1' or redisSETNXReply.toString() =='0'
类似于:
redisSETNXReply.toString() == '1' or '0'
?
是否可以在 CoffeeScript 中简化:
redisSETNXReply.toString() == '1' or redisSETNXReply.toString() =='0'
类似于:
redisSETNXReply.toString() == '1' or '0'
?