使用外部盒子嵌套就可以解决!
<div style="cursor: not-allowed">
<div
style="
width: 100px;
height: 100px;
background: #000;
pointer-events: none;
"
onclick="appendItem()"
></div>
</div>
<script>
function appendItem() {
console.log('988888')
}
</script>