判断对象是不是数组可以用var arr:Array = [];trace(arr is Array);//truevar vec:Vector. = new Vector.();trace(vec is Vector.);//true但是如果Vector.该怎么判断这个东西是不是Vector呢tra...
分类:
其他好文 时间:
2014-07-07 18:14:54
阅读次数:
214
Fortran has two kinds of subprograms: subroutine and function. Usually, subroutine is a combination of several procedures generating side effects with...
分类:
其他好文 时间:
2014-06-30 12:43:00
阅读次数:
207
Longest Common PrefixWrite a function to find the longest common prefix string amongst an array of strings.Solution:public class Solution { public ...
分类:
其他好文 时间:
2014-06-30 12:18:25
阅读次数:
255
Given an absolute path for a file (Unix-style), simplify it.For example,path="/home/", =>"/home"path="/a/./b/../../c/", =>"/c"click to show corner cas...
分类:
其他好文 时间:
2014-06-30 12:05:08
阅读次数:
269
var arr = new Array();
for(var i = 0 ;i < 6 ; i++){
if(i == 0){arr.push(1);}
else if(i == 1){arr = new Array();arr.push(1);arr.push(1);}
else{
var arr2 = new Array();
arr2.push(1);
for(var j = 0;j<ar...
分类:
Web程序 时间:
2014-06-30 09:38:21
阅读次数:
260
只是一个简单的小实验,对比了下 延迟绑定 和 非延迟的效率
延迟绑定主要就是使用 static 关键字来替代原来的 self ,但功能非常强大了
实验代码:
class A {
protected static $cc1 = array('a1', 'b', 'c', 'd');
protected static $cc2 = array('a2', 'b', 'c', 'd')...
分类:
Web程序 时间:
2014-06-30 08:46:02
阅读次数:
183
题目
Given an unsorted array of integers, find the length of the longest consecutive elements sequence.
For example,
Given [100, 4, 200, 1, 3, 2],
The longest consecutive elements sequence...
分类:
其他好文 时间:
2014-06-29 22:16:48
阅读次数:
239
CAS与Spring Security集成,数据库验证,可将用户在CAS服务端的信息传送给客户端...
分类:
数据库 时间:
2014-06-29 22:13:42
阅读次数:
4683
本文将介绍一些常用数据结构,包括 Array, Linked List, List, HashTable, Stack, Queue 等。并同时介绍关于这些基本数据结构的常用操作的复杂度以及如何选择使用合适的数据结构。
分类:
其他好文 时间:
2014-06-29 20:26:01
阅读次数:
406
1、2014年6月29日 10:51:44 原型模式 疑问一: String类型中,动态为其加入函数时候,可以通过String.prototype.[[functionname]] = function(){}方式或者直接string.[[functionname]] = functio...
分类:
其他好文 时间:
2014-06-29 19:11:00
阅读次数:
178