码迷,mamicode.com
首页 >  
搜索关键字:when    ( 7148个结果
A Tour of Go Exercise: Errors
Copy yourSqrtfunction from the earlier exercises and modify it to return anerrorvalue.Sqrtshould return a non-nil error value when given a negative nu...
分类:其他好文   时间:2014-10-28 21:22:45    阅读次数:155
C# - Passing Reference-Type Parameters
?? A variable of a reference type does not contain its data directly; it contains a reference to its data. When you pass a reference-type parameter by value, it is possible to change the data poin...
分类:Windows程序   时间:2014-10-28 17:55:49    阅读次数:227
Using loops for repetitive actions
Loops are an important labor-saving device commonly used in Programming Languages. When you need the same code repeated several times, typing it all o...
分类:其他好文   时间:2014-10-28 15:23:56    阅读次数:199
jQuery deferred when用法
一、什么是deferred对象?开发网站的过程中,我们经常遇到某些耗时很长的javascript操作。其中,既有异步的操作(比如ajax读取服务器数据),也有同步的操作(比如遍历一个大型数组),它们都不是立即能得到结果的。通常的做法是,为它们指定回调函数(callback)。即事先规定,一旦它们运行...
分类:Web程序   时间:2014-10-28 15:10:14    阅读次数:158
20141028bug
1.一台机器断点挂了,重启后再次启动supervisor报错:storm EOFException: null ERROR [Thread-2] storm.event (NO_SOURCE_FILE:invoke(0)) - Error when processing eventjava.lang...
分类:其他好文   时间:2014-10-28 13:38:21    阅读次数:155
Storing text as strings
In common with other programming languages, PHP uses the term string to refer to text. When you store a string in a variable, you need to enclose it i...
分类:其他好文   时间:2014-10-28 11:46:02    阅读次数:133
MySQL - Show Processlist 整理
System lockShow processlist在Show processlist输出中的Status项:5.1手册中没有的或者翻译有问题的,都附带5.5原文说明:After createThis occurs when the thread creates a table (includin...
分类:数据库   时间:2014-10-28 11:35:55    阅读次数:206
A Tour of Go Switch evaluation order
Switch cases evaluate cases from top to bottom, stopping when a case succeeds.(For example,switch i {case 0:case f():}does not callfifi==0.)Note:Time ...
分类:其他好文   时间:2014-10-28 08:10:58    阅读次数:221
Oracle笔记 七、PL/SQL 异常处理
--异常处理declare sNum number := 0;begin sNum := 5 / sNum; dbms_output.put_line(sNum);exception when others then dbms_output.put_line('is Error!');end; --...
分类:数据库   时间:2014-10-28 00:39:21    阅读次数:170
Android监听返回键
android开发中,对返回键事件的监听是要经常用到的,下面以一个例子来演示一下android对返回键的事件监听。 public class BackKeyTest extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedI...
分类:移动开发   时间:2014-10-27 23:00:21    阅读次数:196
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!