页面初始化时,所有商品全是默认图片当屏幕向下滚动,超过下边框的所有图片都显示//图片懒加载(各分类:商品列表页)var waterfull = { init: function(col) { window.onscroll=this.throttle(this.isScroll...
分类:
其他好文 时间:
2014-06-18 13:22:53
阅读次数:
240
方式1: /sbin/iptables -I INPUT -p tcp --dport 8011 -j ACCEPT #开启8011端口 /etc/rc.d/init.d/iptables save #保存配置 /etc/rc.d/init.d/iptab...
分类:
系统相关 时间:
2014-06-18 13:03:30
阅读次数:
262
UIImage这个对象是swift中的图像类,可以使用UIImageView加载显示到View上。以下是UIImage的构造函数: init(named name: String!) -> UIImage // load from main bundle init(named name:...
分类:
其他好文 时间:
2014-06-18 12:49:16
阅读次数:
244
A monolithic kernel is a kernel where all services (file system, VFS, device drivers, etc) as well as core functionality (scheduling, memory allocatio...
分类:
其他好文 时间:
2014-06-18 12:45:23
阅读次数:
361
/** linux/kernel/printk.c** Copyright (C) 1991, 1992 Linus Torvalds** Modified to make sys_syslog() more flexible: added commands to* return the last ...
分类:
其他好文 时间:
2014-06-17 21:10:57
阅读次数:
275
/** linux/kernel/info.c** Copyright (C) 1992 Darren Senn*//* This implements the sysinfo() system call */#include #include #include #include #include ...
分类:
其他好文 时间:
2014-06-17 21:08:30
阅读次数:
251
初始化git仓库:$ cd $work$ git init所谓的 git 仓库,就是.git 隐藏目录。不过初始化后它还是空的。所在地方也即$work,也变成了工作树。两者关系:有选择地将工作树文档存储到 git 仓库中。接受形式:生成git仓库所能接受的数据格式将工作树下所有文档(包含子目录)生成...
分类:
其他好文 时间:
2014-06-17 21:00:46
阅读次数:
186
输入的日期字符串形如:@"1992-05-21 13:08:08"- (NSDate*)dateFromString:(NSString*)dateString{NSDateFormatter*dateFormatter = [[NSDateFormatter alloc]init];[dateFo...
分类:
其他好文 时间:
2014-06-17 16:00:25
阅读次数:
131
//测试图片能否显示-(void)showMyimgview{ UIImageView *backgroundImg=[[UIImageView alloc]init]; backgroundImg.frame =CGRectMake(50, 200, 200, 100); b...
分类:
移动开发 时间:
2014-06-17 15:41:03
阅读次数:
216
最简单的不相交集的实现,来自MAW的《数据结构与算法分析》。代码:class DisjSet: def __init__(self, NumSets): self.S = [0 for i in range(NumSets+1)] def SetUnion(self, S,...
分类:
编程语言 时间:
2014-06-17 15:17:56
阅读次数:
265