JS参数问题 问一个很CAI的问题:script jsfuntion calculate(){document.getElementById('id').value=result;} 我想把id作为一个参数,如何实现?? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 funtion calculate(eId) { document.getElementById(eId).value=result; } 那个命名为'id'的控件代码贴出来看看另:document.getElementById('id ').value=result; 两单引号间多了个空格 function calculate(eId) { document.getElementById(eId).value=result; } 少了一个c..复制你的代码..我晕倒.. function calculate(eId) {var result = "value";document.getElementById(eId).value=result; } 在控件定义里的onclick='calculate(this);'在javascript里:funtion calculate(obj) { document.getElementById(obj).value=result; } <script>function calculate(eId) { var result = "value"; document.getElementById(eId).value=result; } </script> asp.net 调试无法打开网页 c# 上传大文件出现页面过期与上传无效的问题 如何将以二进制形式保存在数据库中的文件读出到Textbox中 web程序如何传递消息给exe程序(win程序在客户端) 一个页面安全问题,没有思路,大家进来讨论一下! 在用datagrid显示的记录上,当移动到某一条记录时,用浮动层显示相应的信息???在等 关于DataGrid数据筛选问题!请赐教! 调试的时候,编译错误中的字体太小?如何调整?如图! Runtime Error 关于文件上传“另存为”的操作。 有关vs2005连接sql 2000的问题 GridView编辑保存时无刷新
{
document.getElementById(eId).value=result;
}
document.getElementById('id ').value=result;
两单引号间多了个空格
{
document.getElementById(eId).value=result;
} 少了一个c..复制你的代码..我晕倒..
{
var result = "value";
document.getElementById(eId).value=result;
}
在javascript里:
funtion calculate(obj)
{
document.getElementById(obj).value=result;
}
function calculate(eId)
{
var result = "value";
document.getElementById(eId).value=result;
} </script>