//调用iframe里的setContent()方法 setTimeout 和setInterval的功能都是经过某一个时间段后发生某件指定的事件或者方法。 如window.setTimeout(“sleep()”,5000);指的是在5000ms后去执行sleep方法,setTimeout也可以直 ...
文章引用自: 文章引用自: 文章引用自: ********************************************************************************************************************* 这段时间开始学习写存储 ...
分类:
数据库 时间:
2017-01-09 00:20:52
阅读次数:
230
Given a set of distinct integers, nums, return all possible subsets. Note: The solution set must not contain duplicate subsets. For example,If nums = ...
分类:
其他好文 时间:
2017-01-08 08:15:38
阅读次数:
181
The set [1,2,3,…,n] contains a total of n! unique permutations. By listing and labeling all of the permutations in order,We get the following sequence ...
分类:
其他好文 时间:
2017-01-07 16:37:45
阅读次数:
251
1 <?php 2 3 class Multiton 4 { 5 private static $conn = []; 6 7 private function __construct() 8 { 9 10 } 11 12 private function __clone() 13 { 14 15 ...
分类:
其他好文 时间:
2017-01-07 10:02:40
阅读次数:
133
Design and implement a data structure for Least Frequently Used (LFU) cache. It should support the following operations: get and put. get(key) - Get t ...
分类:
系统相关 时间:
2017-01-07 08:19:39
阅读次数:
598
用户故事:作为一名赛事组织人员,我需要每场比赛的结果及比赛积分, 以便对比赛队伍进行排名。 积分规则 若为3:0或3:1,胜者得3分,负者不得分。 若为3:2,胜者2分,负者1分。 计划:大概花了5天左右,先做需求分析和代码编写, 然后进行代码复审。。 界面 代码 public partial cl ...
分类:
其他好文 时间:
2017-01-07 00:47:04
阅读次数:
189
import java.util.Date; import java.text.SimpleDateFormat; Date now = new Date(); def portcodes = new StringBuffer('')for(portcode in params.fsetcode){ ...
分类:
编程语言 时间:
2017-01-06 22:16:32
阅读次数:
231
Hadoop 中利用 mapreduce 读写 mysql 数据 Hadoop 中利用 mapreduce 读写 mysql 数据 有时候我们在项目中会遇到输入结果集很大,但是输出结果很小,比如一些 pv、uv 数据,然后为了实时查询的需求,或者一些 OLAP 的需求,我们需要 mapreduce ...
分类:
数据库 时间:
2017-01-06 21:47:45
阅读次数:
336