SOURCE

console 命令行工具 X clear

                    
>
console
$('input').on('click', function () {
  $('body').append('<p>触发了click事件</p>')
})

$('input').on('focus', function () {
  $('body').append('<p>触发了focus事件</p>')
})
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <title>Document</title>
</head>
<body>
  <input type="text" />
</body>
</html>
input:focus{
  border-color:red;
  outline: none
}