码迷,mamicode.com
首页 >  
搜索关键字:action item    ( 28673个结果
操作系统之进程篇(3)
1. 信号量机制的缺陷问题:在上面的生产者消费者实例中,信号量的工作机制如下(我们以生产者的代码为例):1 down(&empty);2 down(&mutex);3 enter_item(item);4 up(&mutex);5 up(&full);如果交换1号和2号语句,变成:1 down(&m...
分类:其他好文   时间:2014-06-06 22:36:54    阅读次数:336
AndroidMainifest标签使用说明1——<action>
1.格式:父标签:描写叙述:一个必须包括一或一个以上的.假设不包括则不会有Intent被拦截。參数:android:name表示的是action的名称,一些标准的action已经在Intent类中定义了,能够查询Intent的api查看。能够通过 "android.intent.action.*"来...
分类:移动开发   时间:2014-06-06 20:13:15    阅读次数:273
Android修行笔记(五):ListView 良好编程指南
使用RelativeLayout替代掉Item中的层次过多的LinearLayout;在快速滚动的时候对于一些比较消耗系统资源的动作不进行执行。。。
分类:移动开发   时间:2014-06-06 16:29:31    阅读次数:227
HTML表单相关的标签
应该放在表格里面提交的应该放在 form --熟悉 name -名称 action="longin.php"(提交到那里) method="get ,post" title-说明文件input type = pas --name="这里写用户名"复选框 kanshu单选 男-------必须是在同一...
分类:Web程序   时间:2014-06-06 16:28:06    阅读次数:231
初学者学习PHP开发应该掌握的几段精华代码
来自:http://hi.baidu.com/dckhello/item/d62b16d8994bf93449e1ddb0经典循环例子经典循环例子counter is $counter\n"); //打印6次 }?>for的高级运用for的高级运用距离星期一还有几天?\n"); print("\n"...
分类:Web程序   时间:2014-06-06 12:40:33    阅读次数:320
自己定义泛型集合并实现foreach遍历
1.首先创建一下SelfList类; public class SelfList:IEnumerable { }2.添加默认的初始大小为4的Item数组; public class SelfList:IEnumerable{ /// /// 默认数组 /// private T[...
分类:其他好文   时间:2014-06-06 12:37:57    阅读次数:172
远程访问
HttpClient httpclient = new DefaultHttpClient(); HttpGet httpget = new HttpGet(baseUrl + action); HttpResponse response = httpclient.execute(httpg...
分类:其他好文   时间:2014-06-06 11:45:51    阅读次数:186
Swift 泛型(generics)
Swift 使用来声明泛型函数或泛型类型:1 func repeat(item: ItemType, times: Int) -> ItemType[] {2 var result = ItemType[]()3 for i in 0..times {4 result...
分类:其他好文   时间:2014-06-06 07:52:02    阅读次数:299
swift的泛型貌似还差点意思
protocol Container { typealias ItemType mutating func append(item: ItemType) mutating func removelast() -> ItemType var count: Int {get} ...
分类:其他好文   时间:2014-06-05 20:10:14    阅读次数:319
安全的文件访问方式
最近在学习SharpDevelop源代码,看到一处访问文件的很有美感的代码,特此供大家一起分享:public sealed class CallbackOnDispose : IDisposable { Action callback; public...
分类:其他好文   时间:2014-06-05 17:36:46    阅读次数:198
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!