javascript js保留小数位数的方法

来源:互联网 发布:java unicode转换 编辑:程序博客网 时间:2024/05/16 05:46

var a=9;

var b=123;

var c=(a/b).toFixed(2);

0 0
原创粉丝点击