在 html 弹出删除框方法
1、
js:
<script type="text/javascript">
function todel(id) {
if (confirm("您确定要放入回收站吗?")) {
window.location = "/news/del/" + id;
}
}
</script>html:<a href="javascript:todel(@a.id)" class="icon_del">删除</a>
2、
html:
<a href="/anew/todel/@a.id" onclick="return confirm('确定要删除吗?')">删除</a>
欢迎交流 http://blog.youkuaiyun.com/ycwol/article/details/42079363
本文提供了HTML中实现删除操作的方法,包括使用JavaScript和HTML结合实现的示例代码,以及如何在点击删除按钮时弹出确认框进行确认。

被折叠的 条评论
为什么被折叠?



