/*** * 获得根目录 * @returns */function getRootPath() { var strFullPath = window.document.location.href; var strPath = window.document.location.pathn...
分类:
Web程序 时间:
2014-08-04 21:17:07
阅读次数:
262
getMeasuredWidth在源码中的解释如下:
/**
* Like {@link #getMeasuredWidthAndState()}, but only returns the
* raw width component (that is the result is masked by
* {@link #MEASURED_SIZE_MASK}...
分类:
其他好文 时间:
2014-08-04 14:36:27
阅读次数:
265
QuicksumTime Limit: 2 Seconds Memory Limit: 65536 KBA checksum is an algorithm that scans a packet of data and returns a single number. The idea is...
分类:
其他好文 时间:
2014-08-01 22:43:32
阅读次数:
333
1. 字符串扩展:;(function() { var method, stringExtends = { /** * 删除字符串开始和结尾的空白 * @returns {string} */ strip: funct...
分类:
Web程序 时间:
2014-08-01 15:46:21
阅读次数:
344
--商品筛选时判断品牌ID是否存在--select dbo.isValite(94,94)create function isValite(@brandId int,@bId int)returns intas begin Declare @rNumber int if @brandId = @b....
分类:
数据库 时间:
2014-07-30 23:36:55
阅读次数:
443
Description
We all love recursion! Don't we?
Consider a three-parameter recursive function w(a, b, c):
if a
1
if a > 20 or b > 20 or c > 20, then w(a, b, c) returns:
w(20, 20, 20)
...
分类:
其他好文 时间:
2014-07-29 14:54:08
阅读次数:
278
现在很多公司都都过Jenkins来管理apk,代码提交后在jenkins上生成build
我们可以这样来取到jenkins的提交版本号
Jenkins在编译job的时候,有个内置的变量BUILD_NUMBER
groovy有一个非常有用的函数:
/**
* Returns an unmodifiable map of all available environment v...
分类:
其他好文 时间:
2014-07-27 11:52:03
阅读次数:
173
jQuery提供了一些很有效的方法,这些方法都在$命名空间之下,对常规的编码很有帮助,完整的api详见:utilities documentation on api.jquery.com$.trim():删除多余的空格:// Returns "lots of extra whitespace"$.t...
分类:
Web程序 时间:
2014-07-26 00:36:17
阅读次数:
252
1. 函数模板
函数模板是一个独立于类型的函数,可作为一种方式,产生函数的特定类型版本。
// implement strcmp-like generic compare function
// returns 0 if thevalues are equal, 1 if v1 is larger, -1 if v1 is smaller
template typename...
分类:
编程语言 时间:
2014-07-23 21:00:05
阅读次数:
279
查阅官档: ?FROM_UNIXTIME(unix_timestamp),?FROM_UNIXTIME(unix_timestamp,format) Returns a representation of the?unix_timestamp?argument as a value in?‘YYYY-MM-DD HH:MM:SS‘?orYYYYMMDDHHMMSS?f...
分类:
数据库 时间:
2014-07-23 17:39:21
阅读次数:
268