jquery误操作
引入jQuery原版是这样
<script src="${pageContext.request.contextPath}/statics/js/jquery-3.5.1.js"/>
导致页面源代码混乱
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/6af802c2f5b7e78366ed1a01b1f602bf.png)
必须
<script src="${pageContext.request.contextPath}/statics/js/jquery-3.5.1.js"></script>
jquery对id的调取
千万不要忘记“#”
data: {'name':$("#txtName").val()}