//百度查找出来的 onLoadSuccess: function(data){//加载完毕后获取所有的checkbox遍历 if (data.rows.length > 0) { //循环判断操作为新增的不能选择 for (var i = 0; i < data.rows.length; i++) ...
分类:
其他好文 时间:
2016-09-16 09:04:07
阅读次数:
329
将一个类的接口转换成客户希望的另一个接口,适配器模式使得原本的由于接口不兼容而不能一起工作的那些类可以一起工作。应用场景:老代码接口不适应新的接口需求,或者代码很多很乱不便于继续修改,或者使用第三方类库。 //老的代码 class User { private $name; function __c ...
分类:
Web程序 时间:
2016-09-16 01:31:17
阅读次数:
156
基于人体部件检测子的行人检测edgelet feature body parts human detection Jointly likelihood function读“B.Wu, R. Nevatia. Detection of Multiple,Partially Occluded Human... ...
分类:
其他好文 时间:
2016-09-15 22:51:49
阅读次数:
252
mysql <?php class mysql { private $mysqli; private $result; /** * 数据库连接 * @param $config 配置数组 */ public function connect($config) { $host = $config['h ...
分类:
数据库 时间:
2016-09-15 20:27:10
阅读次数:
191
// <![CDATA[ if (window.hljs && document.readyState && document.readyState "complete") { window.setTimeout(function() { hljs.initHighlighting(); }, 0) ...
分类:
其他好文 时间:
2016-09-15 19:20:11
阅读次数:
254
Given an integer, write a function to determine if it is a power of two. Solution1: 检查1的个数,略麻烦。 Solution2: 清零法,跟之前有一道题目很像 ...
分类:
其他好文 时间:
2016-09-15 16:25:11
阅读次数:
177
题目链接:http://acm.split.hdu.edu.cn/showproblem.php?pid=5875 题意:有n个数,m个查询,每个查询有一个区间[L, R], 求ans, ans = a[L]%a[L+1]%a[L+2]%...%a[R]; 方法一:算是暴力吧,只能说数据太水; 用p ...
分类:
其他好文 时间:
2016-09-15 16:24:21
阅读次数:
121
Function Time Limit: 7000/3500 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others)Total Submission(s): 1701 Accepted Submission(s): 615 Probl ...
分类:
其他好文 时间:
2016-09-15 12:18:44
阅读次数:
171