惯例广告一发,对于初学真,真的很有用www.java1234.com,去试试吧! 1.修改功能实现 dao public int gradeAdd(Connection con,Grade grade)throws Exception{ String sql="update t_grade set gradeName=?,gradeDesc=? where id=?"; PreparedStatement pstmt=con.prepareStatement(sql); pstmt.s
//获取当前网址 var curWwwPath=window.document.location.href; alert(curWwwPath); //http://localhost:8080/Test/index.jsp //获取主机地址之后的目录 var pathName=window.document.location.pathname; alert(pathName); // /Test/index.jsp //获取主机地址 var pos=curWwwPath.indexO