functionhasClass(obj,cls){returnobj.className.match(newRegExp('(\\s|^)'+cls+'(\\s|$)'));}functionaddClass(obj,cls){if(!this.hasClass(obj,cls))obj.clas...
分类:
Web程序 时间:
2014-08-17 22:37:52
阅读次数:
253
Create a class Employee which extends from a class Person. The attributes of Person class are name, address, age. The attributes of the Employee clas....
分类:
其他好文 时间:
2014-08-15 20:55:19
阅读次数:
373
当我们在eclipse中开发android程序的时候,往往需要看源代码(可能是出于好奇,可能是读源码习惯),那么如何查看Android源代码呢?
比如下面这种情况
图一
假设我们想参看Activity类的源代码,按着Ctrl键,左击它,现实的结果却看不到代码的,提示的信息便是“找不到Activity.clas...
分类:
移动开发 时间:
2014-08-15 19:39:59
阅读次数:
207
垃圾回收(先了解以后再研究)using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.IO;namespace ConsoleApplication1{ clas...
分类:
Web程序 时间:
2014-08-13 12:32:56
阅读次数:
275
使用条件:当我们没有权限或者不能使用服务器的时候,我们需要用socket操作memcachedmemcached-client操作特点: 无需开启memcache扩展 使用fsocketopen()套接字连接memcached 同样执行CRUD require_once(CLAS...
分类:
其他好文 时间:
2014-08-09 21:14:09
阅读次数:
220
Multiplication PuzzleTime Limit: 1000msMemory Limit: 65536KBThis problem will be judged onPKU. Original ID:165164-bit integer IO format:%lld Java clas...
分类:
其他好文 时间:
2014-08-09 11:24:57
阅读次数:
234
1.设计接口类: public interface IBase{ void Somefun();}2.设计扩展插件类: class PluginCls:IBase{ public void Somefun() { Console.WriteLine("hello ,i am derived clas...
分类:
其他好文 时间:
2014-08-05 13:45:39
阅读次数:
159
一切的操作都将使用Object完成,类,数组的引用都可以使用Object来接收 1,认识Class类 以前要是想知道一个类中的属性,成员变量,方法等等的信息的话,需要通过new这个类的对象才能得到这些信息,但是在Java中,也允许一个实例化对象找到一个类的完整的信息,这个类就是Class类,Clas...
分类:
编程语言 时间:
2014-08-04 21:15:28
阅读次数:
368
Deploying JSF portlets?# Some JSF portlets (like: sample-icefaces-ipc-ajax-push-portlet) can not be deployed on Resin due to following exception: com.caucho.config.ConfigException:?listener-clas...
分类:
移动开发 时间:
2014-08-02 18:33:44
阅读次数:
486
Eclipse中添加Android系统jar包
这样做的好处是,可以使用Eclipse开发系统应用了,这样可以调用系统中才使用的API.
1.首先在项目中右击->属性。如图所示依次操作
2.添加User Library
3.第一次要新建User Library名字
注:一定要勾选上System library(addedto the boot clas...
分类:
移动开发 时间:
2014-08-01 23:15:12
阅读次数:
338