在触发DOM上的某个事件时,会产生一个事件对象event,这个对象中包含这所有与事件有关的信息。包括导致事件的元素、事件的类型和事件的相关信息。例如鼠标操作的事件中,会包含鼠标的位置信息。而键盘触发的事件会包含与按下的键有关信息。所有浏览器都支持event对象,但支持方式不同。 DOM中的事件对象 ...
分类:
编程语言 时间:
2018-02-11 14:39:57
阅读次数:
141
1. 概念 二叉树节点的结构: 如图: 2. 二叉数的遍历 2.1 按顺序遍历二叉树 先序遍历:中、左、右 中序遍历:左、中、右 后序遍历:左、右、中 以下图二叉树为例: 先序遍历结果为: 1 ,2,4,5,3,6,7 中序遍历结果为: 4,2,5,1,6,3,7 后序遍历结果为: 4,5,2,6, ...
分类:
编程语言 时间:
2018-02-11 10:49:56
阅读次数:
289
Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive. Example: Note: ...
分类:
其他好文 时间:
2018-02-11 10:48:40
阅读次数:
174
一、鸽巢原理的证明 1.定义: 若有n个鸽巢和kn+1只鸽子,所有的鸽子都进入鸽巢,那么至少有一个巢中有k+1只鸽子(n,k≥0)。 2.证明(反证法): 若每个鸽巢中的鸽子数都不大于k,则总鸽子数=N M,与假设相悖。得证。 关于LCM可参考以前的随笔:http://www.cnblogs.com ...
分类:
其他好文 时间:
2018-02-10 23:25:16
阅读次数:
246
plugins webpack-dev-server ...
分类:
移动开发 时间:
2018-02-10 18:55:10
阅读次数:
279
Description While exploring his many farms, Farmer John has discovered a number of amazing wormholes. A wormhole is very peculiar because it is a one- ...
分类:
其他好文 时间:
2018-02-10 18:54:24
阅读次数:
184
var radio_checked_array = []; $("input[type='radio']").each(function(){ if($(this).attr('checked') == 'checked'){ var _each_this_val = parseInt($(this... ...
分类:
编程语言 时间:
2018-02-10 18:15:10
阅读次数:
191
【解释】 This allows us to learn to predict a person’s identity using a softmax output unit, where the number of classes equals the number of persons in t ...
分类:
移动开发 时间:
2018-02-10 16:59:47
阅读次数:
216
windows环境: 本机 直接 点机zkcli.cmd linux环境: 连接到zookeeper server help命令 help命令用于查询客服端所支持的所用的命令,执行help,输入如下: connect命令 连接zk服务端,与close命令配合使用可以连接或者断开zk服务端 close ...
分类:
其他好文 时间:
2018-02-10 15:02:26
阅读次数:
158
Milk Patterns Time Limit: 5000MS Memory Limit: 65536K Total Submissions: 17079 Accepted: 7553 Case Time Limit: 2000MS Description Farmer John has noti ...
分类:
编程语言 时间:
2018-02-10 14:01:27
阅读次数:
175