ceil():無條件進位語法:Math.ceil(x) 例如: a=Math.ceil(1.2);b=Math.ceil(-1.2) document.write(a+"") //結果為2 document.write(b+"") //結果為-1 floor():無條件捨去 ...
blog.xuite.net