我正试图将AJAX实施到“讨论板”中,可以这么说 它成功地显示了我需要的东西,但现在jquery不会工作。
$( "li" ).click(function(e) {
if (e.target != this)
return;
$( "li" ).not(this).each(function() {
$(this).children(".content").slideUp();
$(this).children(".comment").slideUp();
$(this).children(".sendComment").slideUp();
$(this).children("iframe").slideUp();
});
$(this).children(".seen").hide();
$(this).children(".content").slideToggle();
$(this).children(".comment").slideToggle();
$(this).children(".sendComment").slideToggle();
$(this).children("iframe").slideToggle();
});
function doUpdate(){
$.ajax({
url: "Status.php",
cache: false,
success: function(html){
$("#board").html(html);
},
});
} setInterval (doUpdate, 1000);
});
任何人都可以指出出了什么问题吗?感谢。