当前位置: 代码迷 >> JavaScript >> if var a = 'value',Text1 is a obj, How to Make Text1.value = 'bb' in javascript;but Text1.a='bb' is not right.解决方法
  详细解决方案

if var a = 'value',Text1 is a obj, How to Make Text1.value = 'bb' in javascript;but Text1.a='bb' is not right.解决方法

热度:697   发布时间:2012-02-07 17:45:37.0
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 ' ")
  相关解决方案