easyui-treegrid本身不能实现选中父节点子节点全选,必须通过另外的方法来实现,这里说下如何通过修改节点样式添加checkbox来实现级联选择效果首先需要格式化节点的样式formatter: function (value, row, index) { ...
分类:
其他好文 时间:
2015-12-11 14:51:18
阅读次数:
273
装饰器函数:def function_wrapper(wrapped): def _wrapper(*args, **kwargs): return wrapped(*args, **kwargs)return _wrapper@function_wrapperdef funct...
分类:
编程语言 时间:
2015-12-11 14:48:28
阅读次数:
154
定时器的第三个参数setTimeout(function(num) { // 123是第一个函数的回调参数 alert(num); // 123}, 1000, 123);
分类:
其他好文 时间:
2015-12-11 13:01:39
阅读次数:
158
今天改一个VB程序时发现程序自带的replace 函数不知什么原因竟然不好用了 所以就自己写了一个玩玩 记录一下'XGZ'替换字符Private Function Replace1(ByVal resorce As String, ByVal Tag As String, ByVal value A...
分类:
其他好文 时间:
2015-12-11 12:47:44
阅读次数:
146
原文:SQLSERVER中正则表达式封装使用封装好的正则表达式供SQLSERVER调用 打开数据库->可编程性->函数->标量值函数->新建标量值函数名 USE [数据库]GOSET ANSI_NULLS ONGOSET QUOTED_IDENTIFIER ONGOALTER function [d...
分类:
数据库 时间:
2015-12-11 12:43:00
阅读次数:
191
在javascript中有两个方法call和apply, 这两个方法一般在js框架设计中用的比较多,比如jQuery Code。 那么,这两个方法是做什么的呢,ECMA的解释太抽象,直接看代码:1 function f(){2 console.log(this.name);3 }4 5...
分类:
移动开发 时间:
2015-12-11 10:05:23
阅读次数:
190
// backend test beforeEach(inject(function (_$compile_, _$httpBackend_, _$rootScope_, _$state_, _AnnouncementsService_, _CONFIG_) { ...
分类:
Web程序 时间:
2015-12-11 06:52:16
阅读次数:
190
Two SumGiven an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the...
分类:
其他好文 时间:
2015-12-11 06:51:19
阅读次数:
117
题目:Given an arraynums, write a function to move all0's to the end of it while maintaining the relative order of the non-zero elements.For example, giv...
分类:
其他好文 时间:
2015-12-11 06:50:54
阅读次数:
206
整数不超过10为,小数不超过4位。function hehe(num){ if(num==""||num==null||num==0||isNaN(num)||num==undefined||num10?num.substr(0,10):num; }else if(index==...
分类:
其他好文 时间:
2015-12-11 01:25:50
阅读次数:
198