<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>文档处理</title>
<script src="jquery-3.4.1.js"></script>
</head>
<body>
<input type="text" value="111">
<input type="checkbox">
<script>
console.log($(':text').val());//获取标签属性
$(':text').val('222')//修改标签属性
</script>
</body>
</html>