- 博客(16)
- 资源 (2)
- 收藏
- 关注
原创 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
原创 Servlet 调用servlet
request.getRequestDispatcher("/TestServlet(调用的servlet)").forward(req,resp);
2015-09-18 14:24:38
684
原创 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
原创 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
1160
原创 JSONObject
JSONObject用到的jar包:commons-beanutils 1.7.0 commons-collections 3.1commons-langcommons-loggingezmorph-1.0.3json-lib-2.4-jdk15.jar缺少有可能会报错:Could not initialize class net.sf.
2015-07-02 17:48:51
708
原创 操作远程计算机文件
public static void main(String[] args) { SshClient client=new SshClient(); try{ client.connect("ip"); PasswordAuthenticationClient pwd = new PasswordAuthenticationC
2015-07-01 17:06:39
553
原创 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
13209
原创 js获取tagName ,自定义标签并获取
var params = $("testId[param]"); for(var i=0; i <params.length; i++){ var paramId = $(params[i]).attr("id"); var paramParentId = $(params[i]).parent().attr("id");
2015-06-22 21:33:10
6059
原创 webservices复杂类型值传递
Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2 counts of IllegalAnnotationExceptionsjava.util.Map is an interface, and JAXB can't handle interfaces. this problem is related to
2015-02-13 18:17:02
583
转载 java调用系统打印机,实现打印
JFileChooser fileChooser = new JFileChooser(); // 创建打印作业 // 获取Systems 数据库中的值(path) Systems system = systemService.getPath("path"); String path = system.getValue(); String fileName = path +
2014-01-10 17:26:12
3808
转载 java创建文件夹
File fp = new File("路径"); //判断父目录 File p = new File(fp.getParent()); if (!p.exists()) { p.mkdirs(); } boolean bFile = fp.exists(); if (bFile == true) { } else { bFile = fp.mkdi
2014-01-10 17:15:29
884
原创 extjs的combobox的change事件
如果不是‘额’,点击其他combo填入的值都和最后一次触发的相同。‘select’也可以实现items : [{xtype : 'combobox',id : 'one',name : 'one' ,margin : '12px 4px 4px 4px',fieldLabel : '一',store : ['1', '2', '3', '非'],liste
2014-01-10 17:03:08
18941
原创 extjs中字符串和对象之间的转换,实现前后台传值
前台:onRBtnClick : function(button, e, eOpts) { var form = button.up('form'); var sampleNum = form.queryById('sampleNum').getValue();//获取组件属性值 var sampleType = form.queryById('sampleType').getValu
2013-12-17 18:35:40
3324
原创 extjs panel中动态增加items
(mvc模式下的实现){ xtype : 'panel', height : 140, width : 500, id : 'dynamicFC', hidden : true, margin : '0px 0px 4px 0px', layout : { columns : 2,
2013-12-17 18:16:41
17775
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人