该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
$dd=collection_read_username_aid($user['username'],$post['id'])?>
****1
}else{?>
*****2
}?>
$("#one").on('click', function(){ ****3
var data = {type:1};
$.ajax({
type : 'get',
url : 'index.php?route=post&action=addcollection&aid==$post['id']?>&title==$post['title']?>',
data : data,
success:function(r){
****4 r='';
$("#mainContent").html(r);
},
error: function() {
alert("失败,请稍后再试!11111111111111");
}
});
})
$("#two").on('click', function(){ ****5
var data = {type:1};
$.ajax({
type : 'get',
url : 'index.php?route=post&action=deletecollection&id==$dd['id']?>',
data : data,
success:function(r){
****6 r='';
$("#mainContent").html(r);
},
error: function() {
alert("失败,请稍后再试!2222222222");
}
});
})