标签: javascript jquery
我快速举例说明我的需求:
我没有找到使用javascript做任何解决方法。你有什么想法吗?
答案 0 :(得分:-1)
var n = -1.35; n = Math.abs(n); var formatted = n.toFixed(0); console.log(formatted);