-
javascript怎么去掉小数部分
去掉方法:1、用parseInt(),语法“parseInt(值)”;2、用ceil(),语法“Math.ceil(值)”;3、用floor(),语法“Math.floor(值)”;4、用round(),语法“Math.round(值)”。
去掉方法:1、用parseInt(),语法“parseInt(值)”;2、用ceil(),语法“Math.ceil(值)”;3、用floor(),语法“Math.floor(值)”;4、用round(),语法“Math.round(值)”。