ポップアップ テーブルの内容にデータ テーブルを追加しようとしています。
私は持っている
var popup = window.open("popup.html", "popup","width=1000, height=600, scrollbars=yes");
popup.document.write(
$('#popupDataTable').dataTable( {
'bPaginate': false,
'bLengthChange': false,
'bFilter': true,
'bSort': true,
'bInfo': false,
'bAutoWidth': false,
'bDestroy':true
})
)
popup.document.write(
"<table id='popupDataTable'>"+
"<thead><tr><th>name</th><th>job</th><th>email</th><th>phone</th><th>address</th><th>gender</th></thead><tbody>")
//adding td data codes.....
popup.document.write("</tbody></table>");
ただし、ポップアップウィンドウに表示されるのは
[object Object]
<table>
// my table contents display properly here, but datatable codes don't effect the table.
</table>
私のデータ テーブル JavaScript は、ポップアップ ウィンドウ テーブルに影響しません。この問題を解決するにはどうすればよいですか? どうもありがとう!