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

if var a = 'value',Text1 is a obj, How to Make Text1.value = 'bb' in javascript;but Text1.a='bb' is not right.
sorry   I   have   no   Chinese   input   mathod,I   want   to   use   a   instead   of   value,
eval(Text1.a   =   'bb '),also   not   right.

------解决方案--------------------
eval( "Text1. "+a+ "= 'bb ' ")