js 动态绑定函数 如何传参

document.getElementById("div1").attachEvent("onmouseover",function(){change("参数");});

document.getElementById("div1").onmouseover = function(){change("参数");};

posted @ 2011-06-15 18:52  春哥也编程  阅读(712)  评论(0编辑  收藏  举报