上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 31 下一页
摘要: 使用JSON,在SERVLET或者STRUTS的ACTION中取得数据时,如果会出现异常:java.lang.NoClassDefFoundError: net/sf/ezmorph/Morpher 是因为需要的类没有找到,一般,是因为少导入了JAR包, 使用JSON时,除了要导入JSON网站上面下载的json-lib-2.2-jdk15.jar包之外,还必须有其它几个依赖包:commons-beanutils.jar,commons-httpclient.jar,commons-lang.jar,ezmorph.jar,morph-1.0.1.jar 这几个包也是需要导入的.如果缺少里面的: 阅读全文
posted @ 2012-03-27 12:38 qingyezhu 阅读(692) 评论(0) 推荐(0)
摘要: 最近经常接触easyui,但是easyui官网又总是上不去,所以在网上搜罗了easyui的中文解析,以备查询。CSS类定义:div easyui-windowwindow窗口样式属性如下:1)modal:是否生成模态窗口。true[是] false[否]2)shadow:是否显示窗口阴影。true[显示] false[不显示]div easyui-panel面板属性如下:1)title:该标题文本显示在面板头部。2)iconCls:在面板上通过一个CSS类显示16x16图标。3)width:设置面板宽度。默认auto。4)height:设置面板高度。默认auto。5)left:设置面板左边距。 阅读全文
posted @ 2012-03-09 14:42 qingyezhu 阅读(3669) 评论(1) 推荐(0)
摘要: 严重: Dispatcher initialization failedjava.lang.RuntimeException: java.lang.reflect.InvocationTargetExceptionat com.opensymphony.xwork2.inject.ContainerImpl$MethodInjector.inject(ContainerImpl.java:295)at com.opensymphony.xwork2.inject.ContainerImpl$ConstructorInjector.construct(ContainerImpl.java:431 阅读全文
posted @ 2012-03-02 16:26 qingyezhu 阅读(1453) 评论(0) 推荐(0)
摘要: 使用过程中的一积累,备查。EasyUI 验证框使用方法://***************************missingMessage:未填写时显示的信息validType:验证类型见下示例invalidMessage:无效的数据类型时显示的信息required="true" 必填项class="easyui-validatebox" 文本验证class="easyui-numberbox" 数字验证*****************************//0、调用数据验证方法 return $("#form1& 阅读全文
posted @ 2012-02-29 16:16 qingyezhu 阅读(6328) 评论(0) 推荐(0)
摘要: Eclipse通过Spket增加JQuery提示的方法 1.增加在线更新源:Help->Install New Software...->Add...->Name: "Spket",Location:http://www.spket.com/update/ 2.手动安装:到http://www.spket.com/download.html下载 Plugin 版本,当前版本为1.6.18.下载解压后直接放置于Eclipse的dropins目录下,重启Eclipse. 3.下载jQuery文件,(要下载开发版本). 4. 设置spket ,Window -& 阅读全文
posted @ 2012-02-29 09:16 qingyezhu 阅读(2499) 评论(2) 推荐(0)
摘要: 1.javascript 中function的定义同名function有多个时,不是重载,而是最后一个覆盖了前面的同名function。 function fun(){ return 'hello world'; } function fun(str){ return str; } document.write('<br>'+fun('aaaaaa')+'<br>'+fun()); /* aaaaaa undefined */ function fun(str){ return str; } functio 阅读全文
posted @ 2012-02-24 14:17 qingyezhu 阅读(202) 评论(0) 推荐(0)
摘要: 1.javascript中可以隐式申明变量。当要注意隐式声明的变量总是被创建为全局变量。 变量作用域仅仅是在函数内部,故在外部调用时会报错(not defined error) function fun(){ ... 阅读全文
posted @ 2012-02-24 13:54 qingyezhu 阅读(201) 评论(0) 推荐(0)
摘要: problem 1If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.Find the sum of all the multiples of 3 or 5 below 1000.Answer:233168对于1000一下的正整数中,3的倍数+5的倍数-gcd(3,5)的倍数简单的容斥原理:#include<stdio.h>int cal(int a, int m) { if ( 阅读全文
posted @ 2011-12-06 22:54 qingyezhu 阅读(215) 评论(0) 推荐(0)
摘要: 1.是否存在两个数的和与已知数(key)相等。A:穷举:在数组中任选两个数,判断是否等于已知数,复杂度O(N^2).B:二分:先排序(若是有序,则不需要),然后二分查找M-array[i]是否存在于这个数组,复杂度O(N*log(N)).C:先排序(若是有序,则不需要),然后用两个指针(头指针head与尾指针tail),当*head+*tail>key,则tail--,若是小于,则是head++,若是相等,则是存在。对于C:int getResult(int *num, int n_len, int key, int &num_1, int &num_2) { int * 阅读全文
posted @ 2011-12-04 19:11 qingyezhu 阅读(384) 评论(0) 推荐(0)
摘要: 申明一点:String Pool是对应于在Constant Pool中存储String常量的区域.习惯称为String Pool,也有人称为String Constant Pool.1. 首先String不属于8种基本数据类型,String是一个对象。 因为对象的默认值是null,所以String的默认值也是null;但它又是一种特殊的对象,有其它对象没有的一些特性。2. new String()和new String(“”)都是申明一个新的空字符串,是空串不是null;3. String str=”kvill”; String str=new String (“kvill”);的区别: 在. 阅读全文
posted @ 2011-12-04 15:53 qingyezhu 阅读(211) 评论(0) 推荐(0)
上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 31 下一页