To obtain a modulo in JavaScript, in place of a % n , use ((a % n ) + n ) % n . ... Remainder with negative dividend.
確定! 回上一頁