例子1:(具体参照drp中的flow_card_add.jsp) cell0 cell1
cell2 例子2: /news.do?method=add" method="post" enctype="multipart/form-data">
新闻标题 ...
分类:
Web程序 时间:
2014-05-16 03:57:52
阅读次数:
442
reformat
code的时候,无法将filed放在method前边,很恶心。那么先去添加一个rule,将public method放在private
field之后,其实所有的method都应该在filed之后。然后这样完全不算完,因为reformat code不会默认rearrange cod...
分类:
其他好文 时间:
2014-05-16 03:12:22
阅读次数:
341
【题目】
原文:
1.8 Assume you have a method isSubstring which checks if one word is a substring of another. Given two strings, s1 and s2, write code to check if s2 is a rotation of s1 using only one...
分类:
其他好文 时间:
2014-05-16 01:50:08
阅读次数:
311
继承program by
difference.通过继承,可以建立完整的软件结构分层.其中每一层都可以重用该层次以上的Code.过度使用继承的代价是巨大的.应使用组合或者委托来替代继承.Template
Method(使用继承)和Strategy(使用委托)模式解决了相同的问题:分离通用的算法和具体...
分类:
其他好文 时间:
2014-05-15 13:49:49
阅读次数:
241
fcitx输入法支持:准备文件sublime-imfix.c:/*sublime-imfix.cUse
LD_PRELOAD to interpose some function to fix sublime input method support for
linux.By Cjacker Hua...
分类:
其他好文 时间:
2014-05-15 11:03:55
阅读次数:
244
在这次集体学音标之前,Leader说如果你感觉音标学习已有了一次飞跃的提高,这次可以不参与纠音。我觉得自己一直以来处于学音标的阶段,还没遇到提高到极点的地步,我上升的空间还很大。于是,我参加了集体纠音活动,活动时间长达20天,感觉这20天我真的收获很多,学习英语的热情也很高,每一天都在进步着,而且没有了第一次集体纠音时的那种被打击状态(每读一个音标就被指出错误)。这次纠音活动中,感觉自己对音标掌握...
分类:
其他好文 时间:
2014-05-15 06:19:01
阅读次数:
292
【题目】
原文:
1.6 Given an image represented by an NxN matrix, where each pixel in the image is 4 bytes, write a method to rotate the image by 90 degrees. Can you do this in place?
译文:
一张图像表示...
分类:
其他好文 时间:
2014-05-15 05:43:35
阅读次数:
240
简单工厂模式概念从设计模式的类型上来说,简单工厂模式是属于创建型模式,又叫做静态工厂方法(Static Factory
Method)模式,但不属于23种GOF设计模式之一。简单工厂模式是由一个工厂对象决定创建出哪一种产品类的实例。简单工厂模式是工厂模式家族中最简单实用的模式,可以理解为是不同工厂模...
分类:
其他好文 时间:
2014-05-14 23:04:36
阅读次数:
411
原文:
1.5 Write a method to replace all spaces in a string with ‘%20’.
译文:
写一个函数,把字符串中所有的空格替换为%20 。...
分类:
其他好文 时间:
2014-05-14 14:09:29
阅读次数:
310
@InitBinder 在controller中注册一个customer protperty
editor以解析request中的参数并通过date bind机制与handler method中的参数做绑定。@InitBinderpublic void
initBinder(WebDataBinde...
分类:
其他好文 时间:
2014-05-14 13:34:32
阅读次数:
229