<a href="javascript:void(0)" onclick="deleteC('${c.cid}')">删除</a>
<script type="text/javascript">
function deleteC(cid){
if(confirm("您确定要删除吗")){
location.href="${pageContext.request.contextPath}/servlet?method=1&cid="+cid;
}
}
</script>
<a href="javascript:void(0)" onclick="deleteC('${c.cid}')">删除</a>
<script type="text/javascript">
function deleteC(cid){
if(confirm("您确定要删除吗")){
location.href="${pageContext.request.contextPath}/servlet?method=1&cid="+cid;
}
}
</script>
本文标题:jsp中关于“删除”的操作代码
本文链接:https://www.haomeiwen.com/subject/nvnpmxtx.html
网友评论