function init()
{
var f=document.forms[0]; var m;
for (var i=0;i<f.length;i++) { var e=f.elements[i];
if (e.type=="text" && e.readOnly==false) {
eval('e.onBlur=FormatDecimalAsNumber(this)');
eval('e.onKeyPress=EnsureNumeric(event)');
}
}
}
在body中加入了onload="init();"
不起作用,哪错了
{
var f=document.forms[0]; var m;
for (var i=0;i<f.length;i++) { var e=f.elements[i];
if (e.type=="text" && e.readOnly==false) {
eval('e.onBlur=FormatDecimalAsNumber(this)');
eval('e.onKeyPress=EnsureNumeric(event)');
}
}
}
在body中加入了onload="init();"
不起作用,哪错了
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货