Javascript的this用法
摘自:http://www.ruanyifeng.com/blog/2010/04/using_this_keyword_in_javascript.html this是Javascript语言的一个关键字。 它代表函数运行时,自动生成的一个内部对象,只能在函数内部使用。比如, f...
linux 命令收集
不显示/etc/services #开头的行, /etc/services文件并没有修改 sed -e ‘/^#/d’ /etc/services | more 2. 忽略前十行,显示后面的内容 sed -e ‘...
依赖注入方式
DI三种注入方式: 构造函数注入Set方法注入Spring框架中主要采用的方法 接口注入比如Struts2 中的action是POJO,如果需要访问http request, response, session, application, servlet context,需要实现相...
Javascript 面向对象编程(一):封装
摘自:http://www.ruanyifeng.com/blog/2010/05/object-oriented_javascript_encapsulation.html Javascript 面向对象编程(一):封装 作者:阮一峰 Javascript是一种基于对象(object-b...
CAP
CAP理论 Eric Brewer , systems professor at the University of California, Berkeley, and at that time head of Inktomi, brought the different trade-of...
open session in view
摘自:http://community.jboss.org/wiki/OpenSessioninView 问题描述 A common issue in a typical (web-)application is the rendering of the view, after the...
AJAX的几个问题
我们知道流行的AJAX库帮我们解决了跨浏览器的DOM 查询,DOM操作,CSS操作,AJAX调用等问题。不知以下两个问题是怎么解决的: 1. 浏览器的back & forward问题,浏览器能记住在各个点上的AJAX操作吗? 2. 并发问题。因为AJAX应用的重要场景是异步调用...
Hibernate 小知识
inverse在one-to-many和many-to-many中 inverse 默认值是false 根据hibernate reference所说: the non-inverse side is used to save the in-memory representation...
AJAX Cross-Domain Same-Origin Policy limitation
AJAX Same-Origin Policy(SOP) limitation摘自: http://www.ibm.com/developerworks/library/wa-aj-jsonp1/ http://www.ibm.com/developerworks/cn/lotus/mash...
高性能网站之数据库
读写分离一个主数据库负责写,多个从数据库负责读。主数据库数据单向同步到从数据库。 分库先垂直分库,即不同的表放到不同的数据库中. 在水平分库,同一个表,如用户表,数据太多的话分配到不同的数据库中,根据hash,一致hash 等 针对分库后如果需要有多个库的关联查询,方法有 a. 多个...