当我按下回车键时,我无法改变对 div 的关注。任何人都可以帮忙吗?
<div contenteditable="true" id="t" tabindex="-1">
<div class="me" spellcheck="true" content="inhert" >Hello <span style="font-weight: normal;">world2!</span></div>
<div class="me" spellcheck="true" content="inhert" >Hello <span style="font-weight: normal;">world3!</span></div>
<div class="me" spellcheck="true" content="inhert" id="last">Hello <span style="font-weight: normal;">world4!</span></div>
</div>
$("div").bind("keypress", function(event){
if(event.keyCode == 13){
event.preventDefault();
$("#last").focus();
}
});