// 判断一个数或字符串是否是整数类型 isInteger(value) { return String(parseInt(value)) === String(value) } 参考:https://www.cnblogs.com/yueguanguanyun/p/7255962.html