一个删除邦定事件的难题. 我知道是用这两个来移除事件,但先要知道事件的句柄先呀, 你看看上面 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <script type="text/javascript">function test(str){ document.getElementById('txt').value = str;}function t(){ test.apply(this, ['ok']); // 参数放到这里 , 用数组的形式}function window.onload(){ document.getElementById('txt').attachEvent('onclick', t);}</script><input type="button" value="test" onclick="test();" /><input type="text" id="txt" /> 关于 document.getElementById 多个ID 急求extjs视频教程!!!!!高分答谢 图片的onload事件不被触发 window.open和showModalDialog的问题? 点击不同的单选按钮(radio)动态显示相应的内容? 请教一个关于xpath的问题 <head> & <body) 想取得下拉列表的值,但只能取得它的Index值,如何取得它的具体内容? 谁有javascript 树型菜单源代码? 急用 怎么在fullscreen的窗体中输入一个新的窗体,而不是象我代码实现那样的!!!!!!!!!!!!!!!!!!!!! 动态事件无法执行 怎样传参.....
function test(str){
document.getElementById('txt').value = str;
}
function t(){
test.apply(this, ['ok']); // 参数放到这里 , 用数组的形式
}
function window.onload(){
document.getElementById('txt').attachEvent('onclick', t);
}
</script>
<input type="button" value="test" onclick="test();" />
<input type="text" id="txt" />