比如 <button id="foo" onclick="foo(this.id)">添加</button>怎么通过javascript用 document.getElementById("foo").onclick修改onclick所调用的方法,换成另一个带参数的方法 查看完整描述