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 を返したい関数があります。max($value, 0)関数を使用してPHPでそれを達成できることを私は知っています。同様の機能を提供する JavaScript または jQuery 関数はありますか?
max($value, 0)
使用できますMath.max(value, 0)。
Math.max(value, 0)