Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这个问题对某些人来说可能很明显:)
我有一个输入需要处理数值,然后在为空时过滤/验证为空。我尝试过的每种方法都导致该值要么在为空且值为 0 时被视为 0,要么在为空或值为 0 时被视为 null。
提前致谢。