addEventListener()与removeEventListener()用于处理指定和删除事件处理程序操作。所有的DOM节点中都包含这两种方法,并且它们都接受3个参数:要处理的事件名、作为事件处理程序的函数和一个布尔值。最有这个布尔值参数是true,表示在捕获阶段调用事件处理程序;如果是fa...
分类:
其他好文 时间:
2015-01-24 13:00:03
阅读次数:
126
文档查询地址:http://jquery.cuishifeng.cn/ 通过 jQuery,可以实现元素的淡入淡出效果 jQuery 拥有下面四种 fade 方法:fadeIn() 用于淡入已隐藏的元素fadeOut() 方法用于淡出可见元素fadeToggle()该方法可以在 fa...
分类:
其他好文 时间:
2015-01-23 11:09:57
阅读次数:
158
顺序队列实现任务以此执行的想法:public class TaskManage { //任务队列 private BlockingQueue queue = new ArrayBlockingQueue(10); private boolean running = fa...
分类:
其他好文 时间:
2015-01-20 23:38:07
阅读次数:
257
题目大意:给定一个序列,m次给出一段区间的和,求这个序列是否合法
第一眼看还以为是差分约束- -
[x,y]区间内和为z等价于sum[y]-sum[x-1]=z
用并查集来维护这个关系即可
#include
#include
#include
#include
#define M 110
using namespace std;
int n,m;
int fa[M],f[M];
i...
分类:
其他好文 时间:
2015-01-20 09:00:10
阅读次数:
204
http://acm.hdu.edu.cn/showproblem.php?pid=1829
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std;
int t, n, m;
int fa[2200]...
分类:
其他好文 时间:
2015-01-19 12:54:18
阅读次数:
138
在使用reactjs的时候,我们经常会使用到下面三个方法:
React.createFactory()React.createClass()React.cleateElement()
这三个方法接受的参数和返回的对象类型是不同的。
React.createFactory
该方法会接受一个component类型的对象,并且返回一个factory方法。使用返回的fa...
分类:
Web程序 时间:
2015-01-15 14:21:15
阅读次数:
932
Splay真心比sbt难调多了QAQ
调一个remove一上午终于搞好了QAQ
#include
#include
#include
#include
#include
#define P 1000000
#define MAXINT 100000000000
using namespace std;
struct splay
{
splay *ch[2],*fa;//ch[0]为左子树ch...
分类:
其他好文 时间:
2015-01-10 16:41:27
阅读次数:
166
之前用sbt写了这个题现在自己开发了一套Splay的模板继续拿这道题试试手
#include
#include
#include
#include
#include
#define MAXINT 0x7fffffff
using namespace std;
struct splay
{
splay *ch[2],*fa;//ch[0]为左子树ch[1]为右子树fa为父节点
int dat...
分类:
其他好文 时间:
2015-01-10 08:52:11
阅读次数:
170
1、Ext.grid.GridPanel 主要配置项: store:表格的数据集 columns:表格列模式的配置数组,可自动创建ColumnModel列模式 autoExpandColumn:自动充满表格未用空间的列,参数为列id,该id不能为0 stripeRows:表格是否隔行换色,默认为fa...
分类:
Web程序 时间:
2015-01-08 19:35:32
阅读次数:
173