0
我想在5000秒後點燃get_convo,但是當我點擊一條消息後它會自動啓動。jquery沒有被告知閃電已被告知
$(".mes").click(function(){
var user = $(this).attr("id");
$("#convo").html(user);
$(".convo_mes").html("Loading conversation <img width='15' height='15' src='./img/load.gif'>");
setTimeout(get_convo(user),5000);
});
//get convo
function get_convo(user){
$.post("./php/get_convo.php",{username:user},function(get_convo){
$(".convo_mes").html(get_convo);
});
}
非常感謝! –