You can define a utility clamp function: ... function clamp(number, min, max) { return Math.max(min, Math.min(number, max)); } ...
確定! 回上一頁