确定刷新,取消不刷新
主要涉及的代码:
<script> function check(value){ var k = window.confirm('确定要恢复此数据吗?'); if(k){ location.href = 'new.php?ss=' + value; } } </script> <body> <a href='#' onclick="check(4);">sdfsdf</a> </body>