概述Servlet是Server
Applet的缩写,即在服务器端运行的小程序,而Servlet框架则是对HTTP服务器(Servlet
Container)和用户小程序中间层的标准化和抽象。这一层抽象隔离了HTTP服务器的实现细节,而Servlet规范定义了各个类的行为,从而保证了这些“服务器端运...
分类:
其他好文 时间:
2014-05-17 00:46:29
阅读次数:
387
Givennnon-negative integersa1,a2, ...,an, where
each represents a point at coordinate (i,ai).nvertical lines are drawn such that
the two endpoints of ...
分类:
其他好文 时间:
2014-05-16 19:42:17
阅读次数:
286
迭代器(Iterator)模式,又叫做游标(Cursor)模式。GOF给出的定义为:提供一种方法访问一个容器(container)对象中各个元素,而又不需暴露该对象的内部细节。应用场景在java中所有的集合类都实现了Conllection接口,而Conllection接口又继承了Iterable接口...
分类:
其他好文 时间:
2014-05-14 11:54:50
阅读次数:
256
body { font-family:Verdana; font-size:14px;
margin:0;} #container {margin:0 auto; width:100%;}定义网页主体 字体是 Verdana 字体大小是 14px
网页主体距离浏览器边框距离为0、又定义了一个类(id...
分类:
Web程序 时间:
2014-05-12 20:43:32
阅读次数:
325
Class Templates类别模板就像上一章所说的 functions
那样,classes 也可以针对一或多个类型被参数化。用来管理「各种 不同类型的元素」的 container classes(容器类别)就是典型例子。运用
class templates 你可以实 作出可包容各种类型的 co...
分类:
其他好文 时间:
2014-05-10 07:59:32
阅读次数:
386
#container{ transition:all 3s; margin:-20px auto;
width:1px; height: 500px; animation: around 8s infinite ease;} #line{width:
1p...
分类:
Web程序 时间:
2014-05-10 00:39:24
阅读次数:
4537
class Solution{ public: int maxArea(vector&
height) { int len = height.size(), low = 0, high = len -1 ; int maxArea = 0; ...
分类:
其他好文 时间:
2014-05-08 10:23:54
阅读次数:
287
登录界面:
import java.awt.BorderLayout;
import java.awt.Container;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.Connection;
import java.sql.PreparedStatement;
...
分类:
其他好文 时间:
2014-05-08 00:10:47
阅读次数:
617
如今Android上很多应用都采用底部菜单控制更新的UI这种框架,例如新浪微博
点击底部菜单的选项可以更新界面。底部菜单可以使用TabHost来实现,不过用过TabHost的人都知道自定义TabHost究竟是有多麻烦的,原生TabHost的风格是不依附屏幕的底部的,要依附底部就要重写布局。
TabHost设置的Container可以管理UI的显示,UI可以用LayoutInflater动态生成,也可以是Activity,但不好管理Activity的生命周期。然后用TabHost控制显示UI的显示。...
分类:
移动开发 时间:
2014-05-07 13:32:36
阅读次数:
465
stddef.h #define offsetof(TYPE, MEMBER)
((size_t) &((TYPE *)0)->MEMBER) kernel.h /** * container_of - cast a
member of a structure out to the containi...
分类:
其他好文 时间:
2014-05-07 02:10:07
阅读次数:
410