js中判断整数

1. 余数:a%b
2. 商:parseInt(a/b)
3. if(parseInt(a)==a) alert('a是整数')

原文地址:https://www.cnblogs.com/ry123/p/2792934.html