10 2023 档案

摘要:<script type="text/javascript"><!--全选的方法 --><--复选框的定义方法以及全选方法--> function selectAll() { var s=document.getElementsByName("like"); for (var i= 0; i <s. 阅读全文
posted @ 2023-10-25 21:00 a_true 阅读(13) 评论(0) 推荐(0) 编辑
摘要:<tr><%--限制必须输入,学号限制位数、前四位必须是2023,性别限制男或女,专业用下拉框--%> <th>姓名</th> <input type="text" name="name" required> <th>学号</th> <input type="text" name="number" 阅读全文
posted @ 2023-10-25 20:57 a_true 阅读(21) 评论(0) 推荐(0) 编辑
摘要:通过查阅网上资料,得到jsp下拉框默认值的设置方式: <select name="zy" id="zy" required> <option value="0"> </option> <option value="信息工程"<%= selectValue.equals("信息工程") ? "sele 阅读全文
posted @ 2023-10-24 21:58 a_true 阅读(264) 评论(0) 推荐(0) 编辑
摘要:在JAVA项目中,异常处理是一项非常重要的任务。合理处理异常能够提高程序的稳定性和可靠性,保证程序的正常运行。下面是关于JAVA项目中常用的异常处理情况的总结: 1. 空指针异常(NullPointerException):在使用一个空对象的成员变量或方法时会抛出该异常。可以通过判断对象是否为空来避 阅读全文
posted @ 2023-10-18 21:40 a_true 阅读(18) 评论(0) 推荐(0) 编辑
摘要:树的操作: 1、树的构建 Node build(Node p, int &k, string s){ if(s[k] == '#'){ k++; return NULL; } p = new node(); p -> ch = s[k++]; p -> lc = build(p->lc,k,s); 阅读全文
posted @ 2023-10-16 10:54 a_true 阅读(31) 评论(0) 推荐(0) 编辑
摘要:Java类的继承问题 public class ParentChildTest { public static void main(String[] args) { Parent parent=new Parent(); parent.printValue(); Child child=new Ch 阅读全文
posted @ 2023-10-12 23:17 a_true 阅读(13) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示