... {{phone.name}} {{phone.snippet}} 在标签里面的ng-repeat="phone in phones"语句是一个AngularJS迭代器。这个迭代器告诉AngularJS用第一个标签作为模板为列表中的每一部手机创...
分类:
Web程序 时间:
2014-07-16 22:52:42
阅读次数:
218
先读取Excel文件并存到dataset 1 public DataSet ExcelToDataTable(string filename, string strsheetname) 2 { 3 try 4 { 5 //源的定义 6 ...
分类:
其他好文 时间:
2014-07-12 09:09:31
阅读次数:
239
function repeat(str, count) { return count '; }; document.write(s);}diamond('A', 5);
分类:
Web程序 时间:
2014-07-11 23:17:14
阅读次数:
213
function repeat(target,n){ return Array.prototype.join.call({length: n + 1} , target); }repeat('str',2);//输出strstr
分类:
其他好文 时间:
2014-07-10 16:39:06
阅读次数:
185
我的背景图片是png格式的,在IE中不显示但是在火狐和chrom中显示正常,以下是代码:body{ background: url(image/bj.jpg) no-repeat scroll 0px 0px;}更改图片类型为jpg格式就可以了
分类:
其他好文 时间:
2014-07-07 12:22:14
阅读次数:
194
原理:最外层放水平平铺的背景,第二层放左边,第三层放右边,注意这个做法背景图不能透明结构: 样式:.module-title { height:33px; background: url(../images/more-title.png) 0 -33px repeat-x; text-inden.....
分类:
Web程序 时间:
2014-07-01 18:23:28
阅读次数:
235
Lua提供了一组传统的,小巧的控制结构,包括用于条件执行的if,用于迭代的while、repeat和for。所有的控制结构都有一个现实的终止符号:if for while 都以end结尾,repeat以until作为结尾。控制结构中的条件表达式可以使任何的值,Lua将所有false和nil的值视为“...
分类:
其他好文 时间:
2014-07-01 12:41:38
阅读次数:
253
SICP 习题 1.43 是前面两道题的延续,习题要求我们定义一个过程(repeat f n) ,其中f是一个单参数过程,题目要求我们通过repeat过程将过程f调用n次,注意是嵌套调用n次,不是连续调用n次。就是说结果应该是(f ( f ( … (f x) …))),而不是(begin (f x) (f x) (f x) … (f x))。题目还提醒我们使用习题1.42所定义的compose方法...
分类:
其他好文 时间:
2014-07-01 09:13:03
阅读次数:
201
题目连接:Codeforces 442B Kolya and Tandem Repeat
题目大意:给出一个字符串,可以再添加n个字符,问说可以找到SS的子串形式,S尽量长。
解题思路:枚举长度和起点判断即可,超过len的可以作为任意值,但是超过len+n就不行了。
#include
#include
const int N = 205;
int n, len;
char s...
分类:
其他好文 时间:
2014-06-30 20:21:48
阅读次数:
220
Problem B: Repeat NumberTime Limit:1 SecMemory Limit:32 MBDescriptionDefinition: a+b = c, if all the digits of c are same ( c is more than ten),then w...
分类:
其他好文 时间:
2014-06-30 14:59:33
阅读次数:
508