I\'m trying to call a function with the \"onclick\" event as so:
4条回答 长情又很酷 (楼主) 2020-12-06 18:46 this is the window object in your code. You could pass this as the parameter. then: function move(ele){ var myId = ele.id; alert("myId"); } 0 讨论(0) 查看其它4个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题
this is the window object in your code.
this
window
You could pass this as the parameter.
then:
function move(ele){ var myId = ele.id; alert("myId"); }