function test(art) {
document.formular.eval(art+"_name").value = "Test";
}
这给出一个eval is not a function error
。
我尝试过document.formular.[art+'_name'].value = "Test";
哪一种也不行。
尝试:
document.formular[art+'_name'].value = "Test";
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句