clearNoNum(form,val,text){
//修复第一个字符是小数点 的情况.
if (this[form][val][text] !='' &&this[form][val][text].substr(0,1) =='.') {
this[form][val][text] ="";
}
this[form][val][text] =this[form][val][text].replace(/^0*(0\.|[1-9])/,'$1');//解决 粘贴不生效
this[form][val][text] =this[form][val][text].replace(/[^-\d.]/g,"");//清除“数字”和“.”以外的字符
this[form][val][text] =this[form][val][text].replace(/\.{2,}/g,".");//只保留第一个. 清除多余的
this[form][val][text] =this[form][val][text].replace(".","$#$").replace(/\./g,"").replace("$#$",".");
this[form][val][text] =this[form][val][text].replace(/^(\-)*(\d+)\.(\d\d).*$/,'$1$2.$3');//只能输入两个小数
if (this[form][val][text].indexOf(".") <0 &&this[form][val][text] !="") {//以上已经过滤,此处控制的是如果没有小数点,首位不能为类似于 01、02的金额
if (this[form][val][text].substr(0,1) =='0' &&this[form][val][text].length ==2) {
this[form][val][text] =this[form][val][text].substr(1,this[form][val][text].length);
}
}
},