日期:2014-05-16 浏览次数:20761 次
<input name="mz" onKeyUp="this.value=this.value.replace(/\D/g,'');je.value=(sl.value*this.value).toFixed(2)" onafterpaste="this.value=this.value.replace(/\D/g,'')"/>
function Add(){
var mz = document.createElement("input");
mz.type = "text";
mz.size="6";
mz.maxLength="6";
mz.onkeyup = function(){"this.value=this.value.replace(/\D/g,'');je.value=(sl.value*this.value).toFixed(2)" onafterpaste="this.value=this.value.replace(/\D/g,'')"};
}
mz.onkeyup = function(){
this.value=this.value.replace(/\D/g,'');
je.value=(sl.value*this.value).toFixed(2);;
}
mz.onafterpaste=function(){
this.value=this.value.replace(/\D/g,'')
}