<meta http-equiv="Refresh" content="10">
<script language="javascript" type="text/javascript" src="https://www.jb51.net/extend/js/json.js" ></script>
<script language="javascript" type="text/javascript" src="https://www.jb51.net/extend/menus.js"></script>
<script language="javascript" type="text/javascript" src="https://www.jb51.net/extend/js/jquery-1.4.2.js"></script>
<link href="https://www.jb51.net/css/main.css" type="text/css" />
<link href="https://www.jb51.net/css/question.css" type="text/css" />
<script type="text/javascript">
//删除答案
function deleteanswer($id){
var $delete_answer_url = '<?php echo $delete_answer_url;?>';
var $post_data = {
id : $id
};
if(confirm("are you sure delete?")){
$.ajax({
type : 'post' ,
url : $delete_answer_url,
data : $post_data ,
success : function( e ){
var $rs = JSON.decode( e );
if ( $rs.succ == 1 ){
alert("delete success!");
location.reload(); //刷新页面
} else {
alert( $rs.msg );
}
}
});
}
else{
return;
}
}
</script>
<div>
<table>
<tr>
<td colspan="2"> 回答:</td>
</tr>
<!-- <tr>-->
<!--<td><iframe width=0 height=0 src="https://www.jb51.net/check_new.php"></iframe></td>-->
<!-- </tr>-->
<?php
浅析PHP页面局部刷新功能的实现小结(2)
内容版权声明:除非注明,否则皆为本站原创文章。
转载注明出处:http://www.heiqu.com/56c13c7148bffaba04286e2245d02afd.html