http://www.jb51.net/article/24101.htm 闭包(closure)是Javascript语言的一个难点,也是它的特色,很多高级应用都要依靠闭包实现。 一、变量的作用域 要理解闭包,首先必须理解Javascript特殊的变量作用域。 变量的作用域无非就是两种:全局变量和 ...
分类:
编程语言 时间:
2016-12-09 19:00:44
阅读次数:
190
C# if (tom == null) tom = lucy; 可以写为 tom = tom ?? lucy; 1 .NET 体系结构 命名参数 调用时候 方法参数中定义的 数据类型 :赋值REF 托换值类型(value type) 变量之间存储数据引用类型(reference type) 变量存储 ...
分类:
编程语言 时间:
2016-12-09 16:33:50
阅读次数:
208
好久没写博客了,带着点小愧疚来,添上几个字; 这是今天遇到的一个bug,之前也遇到过,为了后面方便,就记下。 bug提示:com.android.internal.os.ZygoteInit$MethodAndArgsCaller,bug表现:android小app直接闪退;要是不断点调试,还真不知 ...
分类:
移动开发 时间:
2016-12-09 16:26:55
阅读次数:
360
Web Storage的概念和cookie相似,区别是它是为了更大容量存储设计的。Cookie的大小是受限的,并且每次你请求一个新的页面的时候Cookie都会被发送过去,这样无形中浪费了带宽,另外cookie还需要指定作用域,不可以跨域调用。 除此之外,Web Storage拥有setItem,ge ...
分类:
Web程序 时间:
2016-12-09 16:06:18
阅读次数:
190
温馨提示:易贤网小编为您整理了“密码输入框内默认提示”,方便广大网友查阅! 在密码输入框内默认的有文字,鼠标点击之后,文字消失,输入密码是文本框type=“password”属性 输入 <input type="text" value="请输入密码!" onfocus="if(this.value= ...
分类:
其他好文 时间:
2016-12-09 15:50:32
阅读次数:
164
Suppose a sorted array is rotated at some pivot unknown to you beforehand. (i.e., 4 5 6 7 0 1 2). You are given a target value to search. If found in ...
分类:
其他好文 时间:
2016-12-09 12:15:52
阅读次数:
135
ng-options="item.action for item in todos" ng-options表达式的基本形式, 形如 "<标签> for <项目> in <数组> <option value="">(chosse one) </option> ng-options="item.id a ...
分类:
Web程序 时间:
2016-12-09 00:23:06
阅读次数:
175
Evaluate the value of an arithmetic expression in Reverse Polish Notation. (Medium) Valid operators are +, -, *, /. Each operand may be an integer or ...
分类:
其他好文 时间:
2016-12-08 23:14:42
阅读次数:
189