摘要: js及jQuery移除html元素所有的class 1.比较正式的写法 (jQuery) 1 $('').removeClass(); //removeClass没有参数,就可以移除所有的Class了2.其它写法 (jQuery) 1 $('').removeAttr('class');2 $('' 阅读全文
posted @ 2018-04-06 20:59 程序员小明1024 阅读(2601) 评论(0) 推荐(0) 编辑
摘要: var reg = /\w+[@]{1}\w+[.]\w+/; // 验证中文名称function isChinaName(name) { var pattern = /^[\u4E00-\u9FA5]{1,6}$/; return pattern.test(name);} // 验证手机号func 阅读全文
posted @ 2018-04-06 20:59 程序员小明1024 阅读(343) 评论(0) 推荐(0) 编辑
摘要: <style type="text/css"> .mainDiv{ background-image:linear-gradient(-179deg,#F23030 0%,#F4F4F4 95%); } </style> 阅读全文
posted @ 2018-04-06 20:58 程序员小明1024 阅读(276) 评论(0) 推荐(0) 编辑
摘要: SELECT *FROM courseware_visit_history_info vWHERE v.COURSEWARE_VISIT_ID='000bf820b2574f8dabdc2bb1c7c63241' AND v.VISIT_TIME BETWEEN date_sub(NOW(),int 阅读全文
posted @ 2018-04-06 20:55 程序员小明1024 阅读(5827) 评论(0) 推荐(0) 编辑
摘要: js jquery中判断checkbox是否被选中的方法在js中: document.getElementById("checkboxID").checked 返回true或者false jQuery中: $("input[type='checkbox']").is(':checked') 返回tr 阅读全文
posted @ 2018-04-06 20:54 程序员小明1024 阅读(8874) 评论(0) 推荐(0) 编辑
摘要: <!-- 设置clearfloat样式,让里面的div撑开外面的div,让高度自适应 --> <style type="text/css"> .clearfloat{clear:both;height:0;font-size: 1px;line-height: 0px;} </style> </he 阅读全文
posted @ 2018-04-06 20:53 程序员小明1024 阅读(352) 评论(0) 推荐(0) 编辑
摘要: window.location.href= path + "/web/getSectionsListByChptId.do?sectionsInfo.chptId="+chptId; 用jquery方式提交form表单 $("#coursewareForm").attr("action",path+ 阅读全文
posted @ 2018-04-06 20:52 程序员小明1024 阅读(183) 评论(0) 推荐(0) 编辑
摘要: <select id="findUsersByUserName2" resultType="java.util.Map" parameterType="Params"> SELECT id as uid, username as uname, password as pwd, account as 阅读全文
posted @ 2018-04-06 20:50 程序员小明1024 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 控制器方法获得前台传来的值有三种方式:1.通过HttpServletRequest: @RequestMapping(value="/index1") public String helloaction1(HttpServletRequest request){ System.out.println 阅读全文
posted @ 2018-04-06 20:49 程序员小明1024 阅读(109) 评论(0) 推荐(0) 编辑
摘要: Invalid use of group function即“集函数的无效用法” 错句示例:SELECT sname AS '优秀学生姓名',AVG(score) as '平均成绩' FROM `grade_info` WHERE AVG(score)>90 GROUP BY sno; 正确写法:S 阅读全文
posted @ 2018-04-06 20:47 程序员小明1024 阅读(138) 评论(0) 推荐(0) 编辑