Closed deerainw closed 2 years ago
RT,比如将点击列表圆点的行为修改为 zoom in
可以, 伪代码如下
window.addEventListener('click', e => { if (/* 判断是否为无序列表圆点 */) { e.stopPropagation(); // 阻止冒泡, 以取消其他编辑事件的执行 /* 通过模拟点击面包屑或者模拟发送快捷键的方式实现聚焦 */ } }, true)
RT,比如将点击列表圆点的行为修改为 zoom in