阻止光标移动 事件 @keydown=“stopMuseMove” 代码 stopMuseMove(e) { console.log(e.which,'e.which') // 这块需要加trim() if ((e.which === 8 && e.target.innerText.trim().length === 0)) { // up key e.stopPropagation(); e.stopImmediatePropagation(); e.preventDefault(); return false; } },