📜  javascript代码示例中的数字计数

📅  最后修改于: 2022-03-11 15:03:00.790000             🧑  作者: Mango

代码示例2
var length = (number + '').replace('.', '').replace('-', '').length;  // for numbers that can be floats or negatives