<script type="text/javascript">
$(document).ready(function () {
//Prepare jTable
$('#ListContainer').jtable({
title: 'ITEM DETAILS',
actions: {
listAction: 'ListActions.php?action=list',
createAction: 'ListActions.php?action=create',
updateAction: 'ListActions.php?action=update',
deleteAction: 'ListActions.php?action=delete'
},
fields: {
item_id: {
title: 'item_id',
key: true,
list: false,
create: false,
width: '20%'
},
list_id: {
title: 'List_id',
width: '20%'
},
item_name: {
title: 'Item Name',
width: '20%'
},
description: {
title: 'Descriptions',
width: '20%'
}
}
});
//Load person list from server
$('#ListContainer').jtable('load');
});
</script>
这是我的代码..我想在这里传递 id "listAction: 'ListActions.php?action=list'," .. 在我需要访问 ListActions.php 中的值之后。我怎样才能在这里传递我的身份证?我试过这样: listAction: 'ListActions.php?action=list&id=$id',这里 $id 包含从数据库中检索到的值。但这不起作用。