<body> <canvas id="c1" style="border:1px solid red;display:block;margin:0 auto;"></canvas></body> <script> window.onload=function(){ var canvas=docume ...
分类:
其他好文 时间:
2016-09-18 15:04:09
阅读次数:
109
Variable hoisting Another unusual thing about variables in JavaScript is that you can refer to a variable declared later, without getting an exception ...
分类:
其他好文 时间:
2016-09-18 13:15:12
阅读次数:
151
最近一直在赶AAAI 的deadline,几乎停滞了文章的阅读,今天虽属休息日,拿来之前一直想看的paper,继续写,为接下来的 tracker 打下基础。。。 今天要讲的是做视觉跟踪的,利用孪生网络进行示例的搜索,就是利用海量video学习一个匹配函数(matching function),通过后 ...
分类:
其他好文 时间:
2016-09-18 11:54:02
阅读次数:
600
e.stopPropagation(); //阻止事件冒泡 功能:停止事件冒泡 function stopBubble(e) { // 如果提供了事件对象,则这是一个非IE浏览器 if ( e && e.stopPropagation ) { // 因此它支持W3C的stopPropagation( ...
分类:
Web程序 时间:
2016-09-18 10:13:40
阅读次数:
145
Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two n ...
分类:
其他好文 时间:
2016-09-18 07:49:14
阅读次数:
183
处理原型问题时,我们需要特别注意一下两种行为。1、当我们对原型对象执行完全替换时,可能会触发原型链中的某种异常2、prototype。constructor属性是不可靠的下面,我们来新建一个简单的构造器函数,并用它再创建两个对象;function Dog() { this.tail = true; ...
分类:
其他好文 时间:
2016-09-17 23:34:41
阅读次数:
154
用shell脚本写了个9x9乘法表,仅供参考!下有文本...#!/bin/bash#Author:victorEmail:291131893@qq.comDate:2016-09-17#Release1.0#Function:9x9multiplicationtablePATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:~/binexportPATHfunctionmultiplication..
分类:
系统相关 时间:
2016-09-17 22:12:28
阅读次数:
212
匿名函数:说明:匿名函数就是没有名字的函数,闭包是可以访问一个函数作用域里变量的函数//普通函数
functionuserInfo(name){
returnname
}
alert(userInfo(‘李满满‘))
//匿名函数
varuserInfo=function(name){
returnname
}
alert(userInfo(‘李满满‘))
//自我调用
(function(nam..
分类:
编程语言 时间:
2016-09-17 22:08:44
阅读次数:
190
Reference: https://docs.python.org/2/library/collections.html namedtuple() factory function for creating tuple subclasses with named fields deque list ...
分类:
编程语言 时间:
2016-09-17 21:43:18
阅读次数:
126