标签:
1
2
|
function ask( $text ) { echo "<script>if(!confirm(‘$text‘))window.history.go(-1)</script>" ; } |
1
2
3
4
5
6
|
<? …… ask( "是否确定要继续?" ); // 如果取消就返回上层页面,如果确定就执行下面的代码 …… ?>
|
http://www.jb51.net/article/16521.htm
标签:
原文地址:http://www.cnblogs.com/dalitongxue/p/4780812.html