- 浏览: 29265 次
- 性别:
- 来自: 深圳
最新评论
文章列表
// 取所有checkbox的值
var checkedIDs= "";
var chkboxArr = document.getElementsByName("ghostId");
for(var i=0;i<chkboxArr.length;i++)
{
if(chkboxArr[i].checked == true)
{
checkedIDs += chkboxArr[i].value+"~";
...
package com.dom.test;
import java.io.File;
import java.util.Iterator;
import java.util.List;
import org.dom4j.Document;
import org.dom4j.DocumentException;
import org.dom4j.Element;
import org.dom4j.io.SAXReader;
public class Dom4jTest {
private static void dom4jsimple(File fileNa ...
$("#createBucket").click(function(){
$.ajax({
type:"POST",
url:"/usmccm/vodaplex/s3/createBucket.do",
data:{bucketName:$("#bucketName").val()}, /
success:function(html){
...
<script language=javascript>
<!--
function dele() {
document.getElementById("del").value="true";
}
-->
</script>
<form name= "form1 ">
<input type= "text" name= "del">
<input type= "button&qu ...
[/size][size=small][/size][size=x-small] 对HibernateDaoSupport进行二次封装:hibernate增删改查组件
本组件继承了HibernateDaoSupport,并完成对HibernateDaoSupport进行二次封装。提取平时开发常用的底层操作方法,并根据个
人习惯,定义自己的编码规范。根据sun官方的最新开发规范,使用了jdk的新特性——泛型。所有的操作对象以泛型指定。
定义接口规范:IBaseDao.java[/color][color=red]
package com.hoo.dao;
import jav ...
XStream xstream = new XStream(new DomDriver());
xstream.alias("item",Person.class);
xstream.alias("item",AttachmentSet.class);
xstream.alias("DescribeVolumesResponse", VolumeSet.class);
// 一个总体item包含了 Person
VolumeSet volumeSet = new VolumeSet();
Att ...
Map <String, ArrayList> map = new HashMap <String, ArrayList>();
Set<String> keys = map.keySet();
Iterator<String> iterator = keys.iterator();
while(iterator.hasNext()) {
String key = iterator.next();
ArrayList arrayList = map.get(key);
for(Object o : arrayList) {
...