监听contenteditable

$('div').on('focusout', function () {
console.log('focus out')
});
$('div').on('focusin', function () {
console.log('focus in')
});

<div contenteditable="true">

</div>

posted @ 2022-11-08 16:25  奇迹之耀  阅读(210)  评论(0编辑  收藏  举报