Problem E: WeddingUp to thirty couples will
attend a wedding feast, at which they will be seated on either side of a long
table. The bride and groom s...
分类:
其他好文 时间:
2014-05-05 22:10:59
阅读次数:
373
函数的属性length、prototype和方法call()、apply()
length指的是该函数所期望传递进来的参数个数。
function fun0(){} //0
function fun1(num1){} //1
function fun2(num1,num2){} //2
//prototype
function MyObje...
分类:
移动开发 时间:
2014-05-05 12:55:59
阅读次数:
306
图片水平垂直居中的两个常用方法:1、Table-cell。
IE8+及标准浏览器利用display:table-cell让容器以表格元素的方式呈现,配合vertical-align和text-align实现内部图片水平垂直居中。
IE67不支持display:table-cell,可用font-.....
分类:
其他好文 时间:
2014-05-03 23:32:32
阅读次数:
424
iOS设备的内存有限,如果用UITableView显示成千上万条数据,就需要成千上万个UITableViewCell对象的话,那将会耗尽iOS设备的内存。要解决该问题,需要重用UITableViewCell对象重用原理:当滚动列表时,部分UITableViewCell会移出窗口,UITableVie...
分类:
其他好文 时间:
2014-05-03 23:26:14
阅读次数:
312
1 // chinacoder.cn JavaScript Document 2 3
$(document).ready(function() { 4 5 //.filter(":not(:has(.selected))")
//去掉所有不包含class为.s...
分类:
Web程序 时间:
2014-05-03 22:23:20
阅读次数:
446
BeautifulSoup 善于网页数据分析 ,但是 python for android : BeautifulSoup 有 bug ,
text = h4.a.text 只能取得 None,所以我写了function: getText()
来fix this bug.
例如: 抓取CSDN极客头条内容 soup.py
import urllib2, re
from Beau...
分类:
移动开发 时间:
2014-05-03 17:33:08
阅读次数:
427
The game of billiards involves two players knocking 3 balls around
on a green baize table. Well, there is more to it, but for our
purposes this is sufficient.
The game consists of several rounds ...
分类:
其他好文 时间:
2014-05-03 16:15:33
阅读次数:
296
模块“市”的设计与加入
现在重复加入“省”模块的过程,来加入市的模块。
1、建立数据表CityCREATE TABLE [dbo].[City](
[tf_cityId] [nvarchar](4) COLLATE Chinese_PRC_CI_AS NOT NULL,
[tf_provinceId] [nvarchar](2) COLLATE Chinese_PRC_...
分类:
其他好文 时间:
2014-05-03 16:02:29
阅读次数:
293
/**
*在js中并不存在类,所以可以直接通过Object来创建对象,但是使用这种方式创建有一
*弊端:由于没有类的约束,无法实现对象的重复利用,并且没有一种规范约定,在操作时容易带来问题。
*/
var person = new Object();
person.name = "octopus";
person.age = 25;
person.say = function(...
分类:
Web程序 时间:
2014-05-03 15:39:22
阅读次数:
371
在Bash环境中,定义了alias替换有时会产生不是想要的替换:e.g:;而定义function则可以避免这种缺陷。...
分类:
系统相关 时间:
2014-05-03 15:21:39
阅读次数:
319