第一次了解到这个词汇是我在知乎提了一个问题,知乎传送地址。vczh在答案中提到了duck type,于是google了一番,大概了解了一下,附上wiki地址。在面向对象的编程语言中,所谓的duck type是指:对象的属性和方法决定了类的语义,而不是它的继承关系或者是它实现了某个接口。这个概念最早是...
分类:
其他好文 时间:
2014-07-03 11:53:45
阅读次数:
378
示例4-3-4 发挥你的JS才能,定义任何你想要的日期限制自动转到随机生成的一天,当然,此示例没有实际的用途,只是为演示目的
分类:
其他好文 时间:
2014-07-01 00:17:08
阅读次数:
306
echo "======================================welcome==============================================" echo "==== ======" echo "==== 此脚本是用来监控weblogic的doma...
分类:
Web程序 时间:
2014-06-30 23:14:25
阅读次数:
381
Android中实现上传文件,其实是很简单的,和在java里面是一样的,基本上都是熟悉操作输出流和输入流!还有一个特别重要的就是需要配置content-type的一些参数!如果这些都弄好了,上传就很简单了,下面是我写的一个上传的工具类:package com.spring.sky.image.upl...
分类:
移动开发 时间:
2014-06-30 22:11:45
阅读次数:
165
- (void)CallOtherPartWithTelNumber:(NSString *)telNumber andType:(NSInteger)type{ switch (type) { case 1: // 可以返...
分类:
其他好文 时间:
2014-06-30 22:09:43
阅读次数:
257
Before I owned a pool I always thought that pool maintenance was going to be a real pain and troublesome. I had heard many horror stories from friends...
分类:
其他好文 时间:
2014-06-30 21:58:20
阅读次数:
316
$(function () { $("#checkAll").click(function () { $('input[name="infoids[]"]').attr("checked", this.checked); }); var $subBox = $("input[name='infoi....
分类:
其他好文 时间:
2014-06-30 21:37:56
阅读次数:
298
1 什么是redis
redis是一个key-value存储系统。和Memcached类似,它支持存储的value类型相对更多,包括string(字符串)、list(链表)、set(集合)和zset(有序集合)。这些数据类型都支持push/pop、add/remove及取交集并集和差集及更丰富的操作,而且这些操作都是原子性的。在此基础上,redis支持各种不同方式的排序。与memcached一...
分类:
其他好文 时间:
2014-06-30 20:25:48
阅读次数:
205
var ivar = [:]
ivar.className // __NSDictionaryI
var i = 1
i.className // error: 'Int' does not have a member named 'className'
If you want to get the type of a primitive, you have to use brid...
分类:
移动开发 时间:
2014-06-30 20:14:35
阅读次数:
311
/*获得text的值*/
var textval =$("#text_id").attr("value");
//或者
var textval =$("#text_id").val();
/*获取单选按钮的值*/
var valraio =$("input[type=raio]:checked").val();
/*获取一组名为items的radio被选中项的值*/
var ...
分类:
Web程序 时间:
2014-06-30 20:13:35
阅读次数:
298