/** * Utility function for retrieving the text
value of an array of DOM nodes * @param {Array|Element} elem */ getText =
Sizzle.getTex...
分类:
Web程序 时间:
2014-06-07 03:37:39
阅读次数:
240
在开发中,我们经常需要判断某个对象是否为数组类型,在Js中检测对象类型的常见方法都有哪些呢?typeof 操作符对于Function, String,
Number ,Undefined 等几种类型的对象来说,他完全可以胜任,但是为Array时1vararr=newArray("1","2","3"...
分类:
Web程序 时间:
2014-06-07 02:54:29
阅读次数:
302
自己经常用的一个js的命名空间的js,欢迎拍砖。可能写得不够完善,下面贴下自己的代码。当多个单独的模块之间有关联关系的时候,通过命命名空间来获取比较能解决耦合度。(function(){
var arrayEach = Array.prototype.forEach ? function (...
分类:
Web程序 时间:
2014-06-07 02:51:49
阅读次数:
231
一、raid什么意思?RAID是“Redundant Array of Independent
Disk”的缩写,raid什么意思了?说白了,中文翻译过来通俗的讲就是磁盘阵列的意思,也就是说RAID就是把硬盘做成一个阵列,而阵列也就是把硬盘进行组合配置起来,做为一个总体进行管理,最关键的是这个阵列的...
分类:
其他好文 时间:
2014-05-30 09:49:21
阅读次数:
160
Given two binary strings, return their sum
(also a binary string).For example,a ="11"b ="1"Return"100".class Solution
{public: string addBinary(str...
分类:
其他好文 时间:
2014-05-30 08:39:11
阅读次数:
270
二叉堆(Binary
Heap)二叉堆是完全二叉树(或者近似完全二叉树);其满足堆的特性:父节点的值>=(<=)任何一个子节点的键值,并且每个左子树或者右子树都是一
个二叉堆(最小堆或者最大堆);一般使用数组构建二叉堆,对于array[i]而言,其左子节点为array[2*i],其右子节点为 arr...
分类:
其他好文 时间:
2014-05-29 14:02:37
阅读次数:
309
private CollectionViewSource wgdData = new
CollectionViewSource(); private DataTable Ds_wgd { get { return
this.dgv_wgd.ItemsSource ...
Given an arraySofnintegers, find three integers
inSsuch that the sum is closest to a given number, target. Return the sum of the
three integers. You m...
分类:
其他好文 时间:
2014-05-29 11:04:43
阅读次数:
200
第一种定义,是很好的面向接口编程的习惯。比如你有这么一个方法供别人调用:public List
getXXXList(){ List list = new ArrayList(); ... return list;}现在是new
ArrayList(),如果万一以后要改成new LinkedList...
分类:
其他好文 时间:
2014-05-29 10:44:05
阅读次数:
239
#region HttpRequestGet public string
HttpRequestGet(string url) { return HttpRequestGet(url,
WebRequestMethods.Http.Get, "...
分类:
Web程序 时间:
2014-05-29 09:37:17
阅读次数:
307