Default negative variables to zero in javascript. If you need to default a value to 0 if its negative, you could do: var i = -45; if (i<0){ ...
確定! 回上一頁