在Bootstrap源码(具体请看《Bootstrap源码解析》)和其他jQuery插件经常看到如下的写法:+function ($) { }(window.jQuery); 这种写法称为:IIFE(Imdiately InvokedFunction Expression 立即执行的函数表达...
任何复杂的正则表达式都是由简单的子表达式组成的,要想写出复杂的正则来,一方面需要有化繁为简的功底,另外一方面,我们需要从正则引擎的角度去思考问题。关于正则引擎的原理,推荐《Mastering Regular Expression》中文名叫《精通正则表达式》。挺不错的一本书。 OK,先确定我们要解决的...
分类:
Web程序 时间:
2014-07-16 21:08:34
阅读次数:
235
This is a list of the instructions in the instruction set of the Common Intermediate Language bytecode.
分类:
其他好文 时间:
2014-07-16 20:56:47
阅读次数:
663
reinterpret_cast代表强制转化,即把pNMHDR强制转化成LPNMITEMACTIVATE类型的。reinterpret_cast (expression)type-id 必须是一个指针、引用、算术类型、函数指针或者成员指针。它可以把一个指针转换成一个整数,也可以把一个整数转换成一个指...
分类:
其他好文 时间:
2014-07-16 20:47:42
阅读次数:
1250
Evaluate the value of an arithmetic expression inReverse Polish Notation.Valid operators are+,-,*,/. Each operand may be an integer or another express...
分类:
其他好文 时间:
2014-07-16 20:44:52
阅读次数:
158
HTML(hyper text markup language) HTML不是一种编程语言,而是一种标记语言(markup language),标记语言是一套markup tag(标记标签),HTML使用markup tag来描述网页。markup tag(通常被称作HTML tag) mark.....
分类:
Web程序 时间:
2014-07-16 20:29:45
阅读次数:
260
The syntax for accessing the elements of a list is the same as for accessing the characters of a string – the bracket operator ([ ]). The expression i...
分类:
其他好文 时间:
2014-07-11 08:55:10
阅读次数:
174
旧式转型
(T) expression 或 T (expression)
新式转型
const_cast(expression)
通常被用来将对象的常量性转除(cast away the constness)
dynamic_cast(expression)
执行“安全向下转型”,也就是用来决定某对象是否归属继承体系中的某个类型。
reinterpret_cast(expression)
执行低级转型 //不太懂??
static_cast(expression)
强迫隐式转换
...
分类:
编程语言 时间:
2014-07-10 23:19:18
阅读次数:
250
Evaluate the value of an arithmetic expression in Reverse Polish Notation.
Valid operators are +, -, *, /.
Each operand may be an integer or another expression.
Some examples:
["2", "1", ...
分类:
其他好文 时间:
2014-07-10 19:39:53
阅读次数:
146
python一共有两种格式化输出语法,
一种是类似于C语言printf的方式,称为 Formatting Expression
>>> '%s %d-%d' % ('hello', 7, 1)
'hello 7-1'
另一种是类似于C#的方式,称为String Formatting Method Calls
>>> '{0} {1}:{2}'.format('hello'...
分类:
编程语言 时间:
2014-07-10 17:31:38
阅读次数:
185