我有一個表,當我點擊行時,它會在另一個表中加載一些內容。jQuery,Ajax的問題?
問題是,當我第一次點擊一行時,它只加載一次(消息'Some msg'和消息'Some other msg'顯示一次)。當我點擊另一行時,它會加載兩次(消息顯示兩次)。當我點擊連續第三次加載三次,等
這裏是我的代碼:
$("#myTable tr").click(function(e){
$.ajax({
url:'<?php echo $full_path_ajax_php; ?>',
data:{'what':'2','mypath':'12345678'},
dataType:'json',
type: 'GET',
beforeSend:function(){alert('Some msg')},
success: function(){alert('Some other msg')}
});
return false;
});
Tnx男人,那工作正常,我會看現場活動,以更好地理解我的問題.Tnx。 – user147 2010-05-19 05:27:12
來吧,然後至少投我我 – Starx 2010-05-19 05:31:57
我認爲我沒有足夠的聲譽:( – user147 2010-05-19 05:38:57