`
john201314
  • 浏览: 8103 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
文章列表
http://dingjob.iteye.com/blog/659752
<input id="btnSubmit" type="button" value="提 交" strIp="2222"/> //获取值 btn.attributes["strIp"].nodeValue //用js添加自定义值 var btn = document.getElementById("btnSubmit"); btn.setAttribute("strIp","222"); jQuery操作 $(" ...
隐藏控制有两种方法。 1.document.getElementById("testHide").style.display="none";//隐藏控制,不占用空间 2.document.getElementById("testHide").style.visibility = "hidden"; //隐藏控制,占用空间
Map<Long,String> hashMap = new HashMap<Long,String>(); hashMap.put(new Long(1), "A"); System.out.println(hashMap.get(new Integer(1))); 发现取的值为null. 这是因为取值的时候没有与key的类型匹配。 这是取值的逻辑代码 final Entry<K,V> getEntry(Object key) { int hash = (key == ...
由于 Spring 事务管理是基于接口代理或动态字节码技术,通过 AOP 实施事务增强的。虽然,Spring 还支持 AspectJ LTW 在类加载期实施增强,但这种方法很少使用,所以我们不予关注。 对于基于接口动态代理的 AOP 事务增强来说,由于接口的方法是 public 的,这就要求实现类的实现方法必须是 public 的(不能是 protected,private 等),同时不能使用 static 的修饰符。所以,可以实施接口动态代理的方法只能是使用“public”或“public final”修饰符的方法,其它方法不可能被动态代理,相应的也就不能实施 AOP 增强,也不能进行 Spr ...
public class Dervied extends Base {     private String name = "dervied";     public Dervied() {         tellName();         printName();     }         public void tellName() {         System.out.println("Dervied tell name: " + name);     }         public void printName() {     ...
下列程序的运行结果 public static void main(String args[]) {    Thread t = new Thread() {             public void run() {                 pong();             }         };         t.run();         System.out.print("ping");     }     static void pong() {         System.out.print("pong");     ...
java 8 新功能 http://www.blogjava.net/qileilove/archive/2014/07/03/415422.html LongAdder  http://ifeve.com/atomiclong-and-longadder/
Global site tag (gtag.js) - Google Analytics