我嘗試獲取點擊相對於元素的位置,但事件沒有offsetX。 onClick(e) { console.log(e.offsetX) // returns undefined console.log(e.target.
確定! 回上一頁