js 判断整数的方法

对1求余

number % 1 === 0 ? ‘整数’ : ‘小数’

原文地址:https://www.cnblogs.com/yigexiaojiangshi/p/14858124.html