本人也是摸索datatable1.10的新用法,在下面的代码中如有错误,欢迎提出。。
1.10与1.9区别官方网址说明:http://www.datatables.net/upgrade/1.10
我们之间看代码。先看1.9的写法:
$(document).ready(function() {
var table, _qData;
table = $('#ex...
分类:
其他好文 时间:
2014-10-14 16:04:48
阅读次数:
265
例子:有序数组查找//1递归做法function findArr(arr,value,left,right){var mid=Math.floor((left+right)/2);//防止无穷递归if(left>right){return}if(arr[mid]>value){//左边return ...
分类:
Web程序 时间:
2014-10-14 15:47:21
阅读次数:
140
辅助类在几个经典排序算法学习部分,为方便统一测试不同算法,新建了一个辅助类,主要功能为:产生指定长度的随机数组,提供打印输出数组,交换两个元素等功能,代码如下:function ArraySortUtility(numOfElements) { this.dataArr = []; th...
分类:
编程语言 时间:
2014-10-14 15:45:48
阅读次数:
130
Expression Bodied Function 可以用在:
methodsuser-defined operatorstype conversionsread-only properties indexers
看以下的例子:
public class RgbColor(int r, int g, int b)
{
public int Red { get; } = r;
p...
Min-Max
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 2192
Accepted: 502
Description
Define the following function
Given the value C of F(p1, p2 ......
分类:
其他好文 时间:
2014-10-14 14:38:58
阅读次数:
186
1 $('#tt').textbox({2 inputEvents:$.extend({},$.fn.textbox.defaults.inputEvents,{3 keyup:function(e){4 console.log('keyup')5 ...
分类:
其他好文 时间:
2014-10-14 14:18:08
阅读次数:
161
/**
?*?通过curl提交表单获取数据
?*?@param?array?$post?需要提交的数据
?*?@param?string?$url?需要提交到的地址
?*?@return?array?$is_success?返回的数据
?*/
function?getInfoByCurl($po...
分类:
Web程序 时间:
2014-10-14 13:46:08
阅读次数:
170
每天一个JavaScript实例-递归实现反转数组字符串
var func = function(x,indx,str){
return indx == 0 ? str : func(x,--indx,(str +=" " + x[indx]));;
}
var arr = new Array("apple","banna","orange","apple2","apple3");
var ...
分类:
编程语言 时间:
2014-10-14 13:08:58
阅读次数:
182
从传统数据库迁移到GP中一个重要的且经常被开发人员忽略的概念是数据分布,没有良好的设计表的分布键会导致严重的性能问题,以下函数将给开发人员及DBA检测一个表的数据倾斜情况。
-- Function: gpmg.data_skew(character varying)
-- DROP FUNCTION gpmg.data_skew(character varying);
CREATE OR...
分类:
其他好文 时间:
2014-10-14 12:35:58
阅读次数:
266
本系列作为Effective JavaScript的读书笔记。
如果需要向Item 38中的Actor对象添加一个ID信息:
function Actor(scene, x, y) {
this.scene = scene;
this.x = x;
this.y = y;
this.id = ++Actor.nextID;
scene.register(this);
}...
分类:
编程语言 时间:
2014-10-14 11:26:28
阅读次数:
168