function FeedDel()
{
if(confirm("你确定删除该动态信息?"))
return true;
else
return false;
}
$(function(){
$('#arcticle').click(function() {
$.ajax({
type: "GET",
url: "feed.php",
dataType: "json",
success : function(data){
$('#FeedText').empty();
var html = '
";
$('#FeedText').html(html);
$("#arcticle").addClass("thisTab");
$("#myfeed").removeClass("thisTab");
$("#allfeed").removeClass("thisTab");
$("#score").removeClass("thisTab");
$("#mood").removeClass("thisTab");
}
});
});
})
$(function(){
$('#allfeed').click(function() {
$.ajax({
type: "GET",
url: "feed.php?type=allfeed",
dataType: "json",
success : function(data){
$('#FeedText').empty();
var html = '';
$.each( data , function(commentIndex, comment) {
html += '';
})
$('#FeedText').html(html);
$("#allfeed").addClass("thisTab");
$("#myfeed").removeClass("thisTab");
$("#arcticle").removeClass("thisTab");
$("#score").removeClass("thisTab");
$("#mood").removeClass("thisTab");
}
});
});
})
//
$(function(){
$('#myfeed').click(function() {
$.ajax({
type: "GET",
url: "feed.php?type=myfeed",
dataType: "json",
success : function(data){
$('#FeedText').empty();
var html = '';
$.each( data , function(commentIndex, comment) {
html += '';
})
$('#FeedText').html(html);
$("#myfeed").addClass("thisTab");
$("#allfeed").removeClass("thisTab");
$("#arcticle").removeClass("thisTab");
$("#score").removeClass("thisTab");
$("#mood").removeClass("thisTab");
}
});
});
})
//我的动态
$(function(){
$.ajax({
type: "GET",
url: "feed.php?type=myfeed",
dataType: "json",
success : function(data){
$('#FeedText').empty();
var html = '';
$.each( data , function(commentIndex, comment) {
html += '';
})
$('#FeedText').html(html);
}
});
})
' + comment['note'] + '