<s:select>标记呈现HTML下拉框。value=“defaultSearchEngine”将调用对应动作类的getDefaultSearchEngine()方法返回一个默认搜索引擎的值。 在这个例子中,下拉框将自动选择“yahoo.com”作为默认选项。 ...
分类:
其他好文 时间:
2016-09-29 17:56:00
阅读次数:
166
Redis 和 Memcache 都是基于内存的数据存储系统。Memcached是高性能分布式内存缓存服务;Redis是一个开源的key-value存储系统。与Memcached类似,Redis将大部...
分类:
系统相关 时间:
2016-09-29 13:49:54
阅读次数:
246
<form action="test.html" method="POST"> <input type="button" value="提交"/> </form> <!-- 用提交表单,重要 --> <script type="text/javascript"> //定位提交按钮 var input ...
分类:
编程语言 时间:
2016-09-29 13:41:48
阅读次数:
169
有点懒。看注释吧 // k0,enter/enable;k3:esc/disable// k1,value+/menu+;k2:menu-/value-; #include "sysmenu.h" #define KUP 2#define KDWN 1#define KNA 0 uint8_t kt ...
分类:
其他好文 时间:
2016-09-29 13:32:52
阅读次数:
503
1.调用dom对象跟jquery对象的差别 <body><input type="text" value="累成狗了知不知道" ID=“username” name="username" ></body> 输出一个dom 对象: <script type="text/javascript">var ...
分类:
Web程序 时间:
2016-09-29 01:30:25
阅读次数:
138
animation Value: [<animation-name> || <animation-duration> || <animation-timing-function> || <animation-delay> || <animation-iteration-count> || <anim ...
分类:
Web程序 时间:
2016-09-28 19:37:19
阅读次数:
164
那天被同学问到了C++ Primer下面这一段话的含义: 就是将一个负数赋值给一个无符号数,会发生什么? 其实是一个很简单的问题,关键是书中的 “the remainder of the value modulo the number of values the target type can ho ...
分类:
其他好文 时间:
2016-09-28 19:34:44
阅读次数:
127
<form name="form1" method="post" action=""> <input type="button" name="Submit1" value="按钮1" onClick="funSub(1)"> <input type="button" name="Submit2" v ...
分类:
Web程序 时间:
2016-09-28 19:33:19
阅读次数:
189
将enum转换成一个list去binding Step 1: 添加一个ObjectDataProvider Step 2: 使用新添加的ObjectDataProvider去做binding Step 3: 需要取回选中的enum值时,直接使用SelectedItem就是对应的enum value. ...
一、对于数组 var arr=['姚明','易建联','张继科']; $.each(arr,function(index,value){ document.write(index+"="+value+"</br>"); }); for(var i in arr){ document.write(i+ ...
分类:
其他好文 时间:
2016-09-28 19:02:16
阅读次数:
162