日期:2014-05-16  浏览次数:20379 次

javascript eval 拼接用法

<SCRIPT for=BUKRS_REG event="onchange">

for(var i=0;i<10;i++)
{
objValue = eval("document.all.DEPT_ID_REG___"+i+".value");

   if(objValue != "")
{
eval("document.all.PRJ_ID___"+i).value = "";
eval("document.all.DEPT_ID_REG___"+i).value = "";
}
 
}

   
</script>