`
yixiaodiguo
  • 浏览: 2870 次
  • 性别: Icon_minigender_1
  • 来自: 广州
最近访客 更多访客>>
社区版块
存档分类
最新评论
文章列表
1、尽量使用ID、标签选择器 $('#content') $('span')   2、尽量给选择器指定上下文。 $('#content').find(":hidden"); $('span').filter(':animated');  3、缓存对象   var content=$('#content'); content.css('...'); content.bind('.... ......  4、使用用链式操作改善3中的代码 $('#content').css('...') .bind('....  5、缓存为全局对象 wind ...
1,native是方法修饰符。 Native方法是由另外一种语言(如c/c++,FORTRAN,汇编)实现的本地方法。一般用于JNI中。   public class testdll { static{ System.loadLibrary("test"); } public native static int get(); public native static void set(int i); public static void main(String[] arg ...
同步和通讯两个方法实现: 一种是利用synchronized标示,利用继承的object类中的wait()和notify()或者notifyall()唤醒方法。synchronized可以声明方法,也可以用来标记某段代码。用来标记某段代码时的用法是:synchronized(){} ...
1.介绍 Log4j是一个日志框架,从属于Apache下面的一个子项目。下载地址是:http://logging.apache.org/log4j/1.2/download.html 2.应用与测试 添加log4j-1.2.15.jar到lib目录下,在src目录下添加log4j.properties配置文件。 package com.wxm; import org.apache.log4j.Logger; public class HelloLog4j { private static Logger logger = Logger.getLogger(HelloLog4 ...
Global site tag (gtag.js) - Google Analytics