In an attempt to remove duplicate elements from list, I go to the lengths to take advantage of methods in the java api. After investiagting the document of java api, the result is so satisfying that ...
分类:
编程语言 时间:
2014-08-14 01:30:17
阅读次数:
256
Faced with the upcoming exam, Some useful methods referred to file operation drew tremenous attention. Now I make a summary to reading file.
[java] view
plaincopy
import java...
分类:
其他好文 时间:
2014-08-14 01:30:09
阅读次数:
331
For every type of object, the Java virtual machine instantiates an immutable instance ofjava.lang.Classwhich provides methods to examine the runtime p...
分类:
编程语言 时间:
2014-08-14 01:12:47
阅读次数:
206
Putty使用公钥认证时,按照常规方法设置,一直报错:Disconnected: No supported authentication methods available (server sent:public key)。如截图:找了半天没找到问题出在哪里,sshd的设置一切正常。这个做过多次居然...
分类:
其他好文 时间:
2014-08-13 14:52:36
阅读次数:
933
默认时,值类型是按值传递给方法的,也就是说当值对象传递方法时,方法中创建对象的一个临时副本,一旦方法完成,副本被丢弃。
C#提供了ref参数修饰符用于按引用把值对象传给方法,还有out修饰符用于不经过初始化就传递一个ref变量。
public class Time
{
// public accessor methods
public void DisplayCurre...
分类:
其他好文 时间:
2014-08-13 13:15:56
阅读次数:
332
学习随笔 jquery ui apihttp://api.jqueryui.com/dialog/ 大概分为options,event,methods------------------------------------------------------- options为初始化的参数,以...
分类:
Web程序 时间:
2014-08-12 13:20:54
阅读次数:
234
$(function(){ // 判断整数value是否等于0 jQuery.validator.addMethod("isIntEqZero", function(value, element) { value=parseInt(value); ...
分类:
Web程序 时间:
2014-08-11 11:36:32
阅读次数:
380
扩展原有类型的机制(手段)有类的继承,还有 C# 中的扩展方法。
类的继承通过增加新成员,可以扩展原有类型的数据成员(fields);可以定义新方法或重写被继承类的虚方法来扩展原有类型的方法成员(methods)。但继承机制也存在自己的问题,如果原有类型声明为封闭类型(sealed class...
分类:
其他好文 时间:
2014-08-08 23:55:26
阅读次数:
374
1$.extend($.fn.panel.methods,{2showMask:function(jq,msg){3returnjq.each(function(){4varpal=$(this).panel('panel');5if(pal.css('position').toLowerCase(...
分类:
其他好文 时间:
2014-08-08 23:46:16
阅读次数:
429
一个类能够继承(inherit)还有一个类的方法(methods),属性(property)和其他特性。当一个类继承其他类时,继承类叫子类(subclass),被继承类叫超类(或父类,superclass)。在 Swift 中,继承是区分「类」与其他类型的一个基本特征。在 Swift 中,类能够调用...
分类:
其他好文 时间:
2014-08-08 12:20:05
阅读次数:
342