保留几位小数的函数
function xround(x, num) { x = parseFloat(x); num = parseInt(num); return Math.round(x * Math.pow(10, num)) / Math.pow(10, num); }
保留几位小数的函数
function xround(x, num) { x = parseFloat(x); num = parseInt(num); return Math.round(x * Math.pow(10, num)) / Math.pow(10, num); }