81,092
社区成员
发帖
与我相关
我的任务
分享
href="<s:if test="#re.indentStatus!=0"></s:if><s:else>delIndent.action?indent.id=<s:property value="#re.id"/></s:else>"
onclick="return del();"> <font size="2">删除</font> </a>
del方法
<script type="text/javascript">
function del(state,id){
if(state!=0){
alert("某某状态不允许删除!");
return;
}else{
location.href = "delIndent.action?indent.id="+id;
}
}
</script>
a标签的写法:
<a href="javascript:void(0);" onclick='del("<s:property value='#re.indentStatus'/>","<s:property value='#re.id'/>")'>
<font size="2">删除</font>
</a>