📅  最后修改于: 2022-03-11 15:01:52.210000             🧑  作者: Mango
const el = document.querySelector('.username');
console.log(el === document.activeElement);Code language: JavaScript (javascript)