JavaScript中是否有数学函数将数字转换为正值?
You could use this...(你可以用这个......)
Math.abs(x)
Math?.abs()
1.4m articles
1.4m replys
5 comments
57.0k users