function addOrUpdate(id,type) {
if(type == 'update'){
var title = "修改";
}
if(type == 'add'){
var title = "新增";
}
var typeid = "${typeid}"
var url = "<s:url value='/aaaa.shtml'></s:url>" + "?, {
icon: 5,
skin: 'layer-ext-moon',
anim: 6
});
return false;
}
}
});
}
iframe层为form表单
<form action="" method="post" >
<div class="form-group row">
<div class="left col-xs-3 text-right">
<label for="">名称:</label>
</div>
<div class="right col-xs-8 text-left">
<input type="text" class="form-control" >
</div>
</div>
</form>
function checkInfo(){
//检测参数,返回flag
}