最近想实现数据的延迟加载,网上找一下有很的列子,看了Masonry的例子启发,自己写了一个很简单的例子。View页面。@{ ViewBag.Title =
"瀑布流"; Layout = "~/Views/Shared/_Layout.cshtml"; }@sect...
分类:
其他好文 时间:
2014-06-13 00:19:13
阅读次数:
295
方法1.go to the Product menu and find the Edit
Scheme menu there.While in Edit Scheme window, select the "Run" option on the
left hand side of the scree...
分类:
其他好文 时间:
2014-06-12 21:03:42
阅读次数:
317
循环结构 : while循环 do...while循环(几乎不用)
for循环(使用最多)特点:在给定的条件成立时,反复执行某程序段,直到条件不成立为止。给定的条件为循环条件,反复执行的程序段位循环体。一、while循环while(条件表达式){
循环语句;}#import int mai...
分类:
移动开发 时间:
2014-06-10 21:36:59
阅读次数:
346
高效程序员的特征:聪明,懒惰
这里我使用了聪明,懒惰和程序员这几个词。我说的这几个词的意思是:程序员:有积极活力的,专注于用代码解决真实世界里的问题,不是指那些梦想家,那些永远只想不做的人。聪明:能够周全的思考问题(不是那些耍小聪明的人)。懒惰:就像是程序中的lazy-loading,是指延后写代....
分类:
其他好文 时间:
2014-06-10 21:32:50
阅读次数:
242
MySQL大批量插入数据1. 对于Myisam类型的表,可以通过以下方式快速的导入大量的数据。
ALTER TABLE tblname DISABLE KEYS; loading the data ALTER TABLE tblname ENABLE
KEYS; 这两个命令用来打开或者关闭Myisa...
分类:
数据库 时间:
2014-06-10 20:48:02
阅读次数:
283
1, 可能是因为c:\program files\common files\microsoft
Shared\web server
Extensions\40\bin目录下缺少Fp4autl.dll,Fpencode.dll和Fp4awel.dll这三个文件导致的.可以从 windows
xp的安装...
分类:
其他好文 时间:
2014-06-10 19:41:53
阅读次数:
188
有些用户在安装好Android SDK后,打开Android SDK Manager下载API时一直显示“Done loading packages”却迟迟不能前进,界面显示的Package空空如也。自己也出现了这种情况,于是乎,把自己成功解决此问题的方法分享给大家。
工具/原料
Android SDK for Windows...
分类:
移动开发 时间:
2014-06-10 17:41:44
阅读次数:
361
问题:对链表进行排序,要求时间复杂度为NlogN。归并排序。
inline ListNode* getMidle(ListNode *head){
if(NULL == head || NULL == head->next)
return head;
ListNode *pslow = head;
ListNode *pfast = head;
while (pfast->next...
分类:
其他好文 时间:
2014-06-10 17:35:56
阅读次数:
282
1 #include 2 int main()3 {4 int a,b;5
while(scanf("%d %d",&a,&b)!=EOF){6 printf("%d\n\n",a+b);7 }8 return 0;9
}
分类:
其他好文 时间:
2014-06-10 11:24:26
阅读次数:
253
1 #include 2 int main() 3 { 4 int T,n; 5 int
a,sum=0; 6 while(scanf("%d",&T)!=EOF){ 7 while(scanf("%d",&n)!=EOF){ 8
...
分类:
其他好文 时间:
2014-06-10 11:22:38
阅读次数:
201