摘要:
日期格式化"> 修改页面的base路径。String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+request.getContextPath()+"/"; 阅读全文
摘要:
Ctrl+T 得到接口的实现类Ctrl+Shift+T 查找类遇到了不能使用ctrl+shift+T,Navigate里也找不到Open Type,原来是因为自己正在使用的Perspective是Team Synchronizing,切换到java就ok了。10:18 2014/4/16Cril+H... 阅读全文
摘要:
有4种方法,从上到下清理: 阅读全文
摘要:
com.opensymphony.xwork2.dispatcher.HttpServletRequestapplicationcom.opensymphony.xwork2.dispatcher.HttpServletResponsecom.opensymphony.xwork2.ActionCo... 阅读全文
摘要:
从继承关系来看,所有组件继承自View。容器也是继承自View,它能容纳别的View。 所有容器继承自ViewGroup。包括 FrameLayout, LinearLayout, RelativeLayout, SlidingDrawer , AbsoluteLayout, AdapterView 阅读全文
摘要:
1.$.each的错误用法$.each的return xx 不能结束外层的函数,但return true/false可以所以一般的:var result;$.each(json,function(i,item){ if(item.id==id)resuult = item;});return result; 阅读全文
摘要:
Get方式访问 Post方式访问 Proxy代理访问。 阅读全文
摘要:
HttpClient提供了很多接口,让我们能自定义处理逻辑,这些接口可以在AbstractHttpClient中找到:setAuthSchemes(AuthSchemeRegistry);setConnectionBackoffStrategy(ConnectionBackoffStrategy);setReuseStrategy(ConnectionReuseStrategy);setKeepAliveStrategy(ConnectionKeepAliveStrategy);setHttpRequestRetryHandler(HttpRequestRetryHandler);setRed 阅读全文
摘要:
HttpClient是它的核心接口。可以理解为一个简单的浏览器。 主要方法有: getParams(); 获取运行参数 getConnectionManager(); 获取连接管理器。连接管理器中可以获取Schme、请求连接、释放连接、关闭空闲连接、关闭超时连接、关闭所有连接。 execute(); 阅读全文