<a onclick="d1(this)" id="${test.id}">删除</a>
<script type="text/javascript"> function d1(btn) { var id = btn.getAttribute("id");/* $(btn).attr */ alert(id); if(confirm("确定删除吗")) { window.location.href="delete.do?id="+id; } } </script>