请问window.document.form.A.value,其中A是字符串变量,怎么办?! eval("window.document.form."+aaa+".value") 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 window.document.form.elements['bbb'].value <script>function check(A){var str=eval('document.all.'+ A +'.value');alert(str);}</script><input type=text id=aaa ><input type=text id=bbb ><button onclick="check('aaa');">测试</button><button onclick="check('bbb');">测试</button> o1 = document.getElementById('id');alert(o1);也行啊。 iframe编辑器问题,谢谢! js实现这样的效果 java随机数改进问题 有点伤感~~~ 在FireFox里怎么取HTMLEditor里的innerHTML呢? 关于window.showModalDialog函数 禁止页面刷新,包括鼠标\键盘\F5,如何实现? 在线等,怎么解决不选择文字拖动控件? 简单问题:页面参数加TR显示 Ext4 动态加载JS后的调试问题 Grid式的表格结构(不完善,请高手帮忙改进) 誰能将下列:货币数字英文大写转换函数 从PHP转成JS?
window.document.form.elements['bbb'].value
function check(A)
{var str=eval('document.all.'+ A +'.value');
alert(str);
}</script><input type=text id=aaa ><input type=text id=bbb >
<button onclick="check('aaa');">测试</button><button onclick="check('bbb');">测试</button>
o1 = document.getElementById('id');
alert(o1);
也行啊。