![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
前端js/jq
一颗卤蛋
这个作者很懒,什么都没留下…
展开
-
js正则匹配数字、大小写字母、下划线、中线和点
正则为:/[^a-z|A-Z|0-9|\-|_|\.]/g var name = "hjhj测试[[[[[{{{{as9-._>@##$$?W??"; var regs = /[^a-z|A-Z|0-9|\-|_|\.]/g; name= name.replace(regs, ""); console.log("name:",name); 输出结果是:hjhjas9-原创 2015-06-22 21:43:57 · 13202 阅读 · 0 评论 -
org.apache.jasper.JasperException: Unable to compile class for JSP.JSP文件过大,导致文件编译出错
报错log:Caused by: org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 41 in the generated java fileThe code of method _jspService(HttpServletRequest, Htt原创 2015-08-23 14:43:22 · 2502 阅读 · 0 评论 -
html5验证+点击button刷新页面+uncaught exception: out of memory
jsp页面: test js:var validFlag = true; $.each($("#test :input[required]"), function(e,c){ var id = $(this).attr("id");原创 2015-08-12 15:01:59 · 1158 阅读 · 0 评论 -
Jq 下拉框chosen之后,动态改变dropdown的数据
Jq 下拉框chosen之后,想要动态改变dropdown的数据,用:$("#dropdownId").trigger("liszt:updated");demo:$("#dropdownId").empty();$("#dropdownId").append("All");for(var item in items){ $("#dropdownId").append("" + i原创 2015-09-29 16:58:56 · 1463 阅读 · 0 评论