去掉小数点后面的0

parseFloat(a)

猜你喜欢

转载自blog.csdn.net/qq_23701965/article/details/89001459