input失去焦点的时候,如果数字有小数位则保留,否则自动添加.00
number.toFixed( [digits] )
this.value=Number(this.value).toFixed(2);
参考