第一种方式:使用apply()方法: function sum(x, y) { alert(this); return x + y;//这里的this指的是callS对象方法}function callS() {callS.callSum1(1, 2);}callS.callSum1 = funct...
分类:
Web程序 时间:
2015-02-10 11:00:21
阅读次数:
92
详情参考:http://qtip2.com
我下载的 库文件以及自己总结的资料:链接:http://pan.baidu.com/s/1pJI43Cv 密码:751y
基本用法:
(1)只有简单提示
$('#username').qtip({ // Grab some elements to apply the tooltipto
content: {...
分类:
Web程序 时间:
2015-02-09 18:26:29
阅读次数:
186
一、$scope.$broadcast('scroll.infiniteScrollComplete');↓↓$scope.$apply(function(){ $scope.$broadcast('scroll.infiniteScrollComplete'); });二、报错$digest al...
分类:
其他好文 时间:
2015-02-09 12:36:35
阅读次数:
2682
Description
You are given a sequence {A1, A2, ..., AN}. You task is to change all the element of the sequence to 1 with the following operations (you may need to apply it multiple times):
choose...
分类:
其他好文 时间:
2015-02-08 11:36:49
阅读次数:
143
Eclipse GBK支持添加 首先Windows->Preferences, 然后选择General下面的Workspace. Text file encoding选择Other GBK, 如果没有GBK的选项, 没关系, 直接输入GBK三个字母, Apply, GBK编码的中文, 已经不是乱码了...
分类:
其他好文 时间:
2015-02-07 21:32:02
阅读次数:
155
关于call,apply,bind这三个函数的用法,是学习javascript这门语言无法越过的知识点。下边我就来好好总结一下它们三者各自的用法,及常见的应用场景。首先看call这个函数,可以理解成"借用“,"请求"。想像一下如下的情景:你孤单一人漂泊在外,有急事想往家里打电话,可是很不巧,手机欠费...
分类:
移动开发 时间:
2015-02-07 18:46:19
阅读次数:
210
Text Understanding from Scratch Xiang Zhang,?Yann LeCun (Submitted on 5 Feb 2015) This article demontrates that we can apply deep learning to text understanding from character-level inputs all the...
分类:
其他好文 时间:
2015-02-06 19:10:43
阅读次数:
136
上次提到Little定律, 我也解释过它跟另外一个公式有一些内在的关系,但是其实我自己对LL在当前复杂架构系统中到底是怎么应用的也没有完整的想法,于是我在Linkedin上把这个问题抛了出来,没有想到的是得到了很多大师级前辈回复,有些甚至非常详细:我的问题:Does Little'law reall...
分类:
移动开发 时间:
2015-02-06 11:12:43
阅读次数:
318
一、一维数组var a=[1,2,3,5];alert(Math.max.apply(null, a));//最大值alert(Math.min.apply(null, a));//最小值二、二维数组var a=[1,2,3,[5,6],[1,4,8]];var ta=a.join(",").spl...
分类:
编程语言 时间:
2015-02-05 13:07:22
阅读次数:
224