tableview 滑动导致 NSTimer和delegate 回调停止 解决办法// request回调NSURLRequest*request=...NSURLConnection*connection=[[NSURLConnectionalloc] ...
分类:
其他好文 时间:
2014-06-22 23:51:14
阅读次数:
233
最近看了异步框架的文章,
这个有个bad case, 我不知道采用什么方案解决.
钱有100,两口子之前有约定要剩下90. 老公看到有100,花10元,花完以后因为事件异步,数据不一致,此时老婆刷新页面也看到100,再花10元. 最终所有异步事件都处理完之后最终是80元. 不符合用户的预期.
这个问题如何解决?...
分类:
其他好文 时间:
2014-06-22 19:01:04
阅读次数:
209
ServletContext读取资源文件内容的方式有两种:
方法1.
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
InputStream in = this.getServletContext().g...
分类:
其他好文 时间:
2014-06-22 18:22:08
阅读次数:
208
新手初学web 文件上传做完了 进度做了 没有进度条只有文字 不太好看 需要做个进度条 没有美工 网上很多的 进度条 需要图片 还有各种框架 看着好麻烦 只好自己弄一个 还挺简单的 没想象的那么复杂 分享一下
jsp页面
图片
js
src="${pageContext.request.contex...
分类:
其他好文 时间:
2014-06-22 18:04:43
阅读次数:
179
1.
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
print3(response);
}
private void print(HttpServletResponse response) thr...
分类:
其他好文 时间:
2014-06-22 17:16:43
阅读次数:
175
要实现的效果:
1、父节点选中,则下面的子节点全选中
2、父节点不选中,则下面的子节点全不选中
3、子节点只要选中了一个,则父节点选中
4、子节点全不选中,则父亲节点不选中
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getSer...
分类:
Web程序 时间:
2014-06-22 14:59:13
阅读次数:
311
singleton
prototype
request
session
global session
后三种只适用于容器为webaware applicationContext 例如XmlWebApplicationContext
当 后三种范围bean 被依赖时候,需要添加 cglib代理
xmlns:xsi="http://www.w...
分类:
编程语言 时间:
2014-06-22 00:24:01
阅读次数:
278
好的,废话不多说,接着上篇来.
变量(variables)
始终使用 var 关键字来定义变量,如果不这样将会导致 变量全局化,造成污染.
//bad
superPower = new SuperPower();
//good
var superPower = new SuperPower();
使用 一个 var关键字来定义多个变量...并且每个变量一行..
// bad...
分类:
编程语言 时间:
2014-06-21 22:00:20
阅读次数:
259
One of the most important use-case in any cloud is provisioning a VM . In this article we shall do a walk through about an instance(VM) being provisio...
分类:
其他好文 时间:
2014-06-21 16:59:43
阅读次数:
376
In May 2011, I read a request for installation Openvswitch on Qemu image. I started to play with Openvswitch and finally became fan of this project. I...
分类:
其他好文 时间:
2014-06-21 14:42:43
阅读次数:
400