1、在JSTL语句中,<c:if test="">中,判断属性是否相等,判断语句在${}中进行,及:
<c:if test="${item.key == titleTalent.proSkillLevel}">
2、在JSTL中,没有if else,使用choose、whe、otherwise来表现条件判断
<c:choose>
<c:when test="${item.key == titleTalent.proSkillLevel}">
<option value="${item.key }" selected="selected">${item.value}</option>
</c:when>
<c:otherwise>
<option value="${item.key }">${item.value }</option>
</c:otherwise>
</c:choose>
3、select的id名不能取为type,不然获取不到的;
4、在javaScript 中获取Text文本框中的值:
eval(document.getElementById("name")).value;
5、给mapper传值时,若直接传递参数,那么在mapper中获取时,直接使用数字代表第几个参数,如#{0}
6、在写update语句的时候,表名不能加上引号,不然会报错:
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException