我的页面中有这段代码
<body onmouseup="fun()">
.......
.......
<button id="ele">Exclude</button>
</body>
我怎样才能实现这样的目标
function fun()
{
if(MOUSE RELEASE IS ON TOP OF BUTTON #ele)
{
console.log('Mouse released on top of the button');
}
else
{
console.log('Mouse released');
}
}