js四舍五入保留N位小数
//四舍五入保留e位小数(e:表示小数位数)function round(v,e){var t=1;for(;e>0;t*=10,e--);for(;e<0;t/=10,e++);return Math.round(v*t)/t;}