我们有可能会写出或者遇到类似这样的代码:
C/C++ switch (expr1)
{
case label11:
switch (expr2)
{
case label21:
// do something
break;
case label22:
...
分类:
编程语言 时间:
2014-10-30 11:52:44
阅读次数:
235
Recently I'm dealing with a source code data mining project, and I have to use XML in it. But something confusing happens to me. So I searched on Goog...
分类:
编程语言 时间:
2014-10-30 01:37:46
阅读次数:
183
由jQuery绑定类型为file的input控件的change事件,发现只能被触发一次,修改方法-->原始代码:$input.change(function() { // something});修正后代码:$input.live('change', function() { // someth.....
分类:
Web程序 时间:
2014-10-28 15:09:32
阅读次数:
190
下面的不是指针指向数组,而是指针指向SliceI'm having a little play with google's Go language, and I've run into something which is fairly basic in C but doesn't seem to ...
分类:
其他好文 时间:
2014-10-28 00:21:40
阅读次数:
176
The Children’s Day has passed for some days .Has you remembered something happened at your childhood? I remembered I often played a game called hide h...
分类:
其他好文 时间:
2014-10-27 20:55:47
阅读次数:
243
Toggle navigation Project name Home About Contact Dropdown Action Another action Something else here Nav header Separated link One more...
分类:
其他好文 时间:
2014-10-27 12:11:33
阅读次数:
174
//if-else嵌套过多时的优化方案在垒代码的时候经常会遇到 if-else 的嵌套判断,就是下一个判断依赖于上一个判断的结果,其基本的表现形式为if(){//first judge if(){//second //do something }else{ if(){//third //do...
分类:
其他好文 时间:
2014-10-24 22:08:56
阅读次数:
354
回车事件使用的是HTML的Event对象,通过keyCode判断被敲击的键。
function Click(){
if(event.keyCode == 13
){ //按下回车键
//do something
}
}
或者:
function Click(){
//do something
}
关于Event事件参考:HTML DOM Event...
分类:
Web程序 时间:
2014-10-24 20:48:44
阅读次数:
178
1. Activities An Activity is an application component that provides a screen with which users can interact in order to do something, such as dial the....
分类:
移动开发 时间:
2014-10-23 20:29:38
阅读次数:
316