Which value is better to use? Boolean true or Integer 1?

前端 未结 3 1528
猫巷女王i
猫巷女王i 2021-02-05 15:15

Does it make any sense or not?

3条回答
  •  南方客
    南方客 (楼主)
    2021-02-05 15:47

    For what? Use a boolean for a boolean; use an integer when you're counting something.

提交回复
热议问题