摘要:
方法一: var newopen = function(id,level) { return function() { opentree(id,level);//该函数为外部定义的一个执行函数; } } x.attachEvent("onclick",newopen(id,parseInt(level)+1)); y.attachEvent("onclick",newopen(... 阅读全文
posted @ 2008-04-05 12:07
think8848
阅读(2197)
评论(0)
推荐(0)
摘要:
转自:http://hi.baidu.com/thenatureofspaceandtime/blog/item/c4ab61f4e842ca6ddcc4742f.html 简单的绑定时间 似乎只能在第一次加载的时候才有效果 document.getElementById('yourHTMLelement').onclick = haha; function haha(){ alert(... 阅读全文
posted @ 2008-04-05 09:36
think8848
阅读(2068)
评论(0)
推荐(0)
浙公网安备 33010602011771号