imgObj.setAttribute("onclick","changeBig(this)"); 对的imgObj.setAttribute("onclick","changeBig(imgObj)"); 错误javascript为什么要用this指对象 查看完整描述