2011-11-04 128 views

回答

1

基本上在回調調用中傳遞參數是不安全的。 嘗試類似這樣:

var a = $('<a href="#" class="remove">x</a>'); 
a.click(function() { 
    remove_it(idtag); 
    return false; // use this to not try and navigate to the href 
}); 
$('#rate_exception_table').find('tbody') 
.append($("<tr id='" + idtag + "'>") 
    .append($('<td>').append("")) 
    .append($('<td>').append("")) 
    .append($('<td>').append(picker)) 
    .append($('<td>').append(a)) 
); 
+0

沒有任何改變......該行還沒有被添加到表 – David