【JavaScript】五种js判断是否为整数类型方式

// 判断一个数或字符串是否是整数类型
			isInteger(value) {
				return String(parseInt(value)) === String(value)
			}

参考:https://www.cnblogs.com/yueguanguanyun/p/7255962.html

猜你喜欢

转载自blog.csdn.net/weixin_43343144/article/details/90753620