js输出:
$(document).ready(function() {
$('#datatable').dataTable({
"bProcessing": true,
"bServerSide": true,
"sPaginationType": "full_numbers",
"sAjaxSource": "includes/list.php",
"sServerMethod": "POST"
});
$('.deleteRow').click(function() {
alert("wait...");
});
});
服务器端 php 输出:
<tr class="odd">
<td class="">lorem ipsum</td>
<td class="">lorem ipsum</td>
<td class="">lorem ipsum</td>
<td class="">lorem ipsum</td>
<td class="">lorem ipsum</td>
<td class=""><a class="deleteRow">delete</a></td>
</tr>
当我点击删除没有警报..
但是当我将这个删除链接手动放入我的页面时(不是 php 输出),功能运行良好..