<?php echo "<script>var v=window.confirm( '你确定要删除这 $len 记录吗? '); document.cookie ='res=' + v; </script>"; $res=$_COOKIE['res']; ?>