js中判断一个字符串能否转换成一个数字类型 其他 2021-03-26 08:14 0 阅读 用Number(字符串)如果不是就会返回NaN if (Number(字符串).toString() == "NaN") { } 猜你喜欢