JavaScript 字符串转数字怎么选Number、parseInt 和 parseFloat 的区别

JavaScript 里把字符串转数字,Number、parseInt、parseFloat 三个方法核心差别是解析规则不一样,Number 是严格整体转换,要求整条字符