📅  最后修改于: 2022-03-11 15:03:34.287000             🧑  作者: Mango
function clicked(evt){
var e = evt.target;
var dim = e.getBoundingClientRect();
var x = evt.clientX - dim.left;
var y = evt.clientY - dim.top;
alert("x: "+x+" y:"+y);
}