<!DOCTYPE html>
<html>
<head>
  <title>文件示例</title>
  <style>
    div {
      margin-bottom: 10px;
    }
  </style>
</head>

<body>
  <form>
    <div>
      <label for="profile_pic">选择要上传的文件：</label>
      <input type="file" id="profile_pic" name="profile_pic" accept=".jpg, .jpeg, .png">
    </div>
    <div>
      <button>提交</button>
    </div>
  </form>
  <script>
    const test = document.querySelector('input');
  </script>
</body>
</html>
