Frontend/進階_NUXT框架/nuxt-demo/public/js/datatables-simple-demo.js
2024-10-31 12:17:13 +08:00

10 lines
312 B
JavaScript

window.addEventListener('DOMContentLoaded', event => {
// Simple-DataTables
// https://github.com/fiduswriter/Simple-DataTables/wiki
const datatablesSimple = document.getElementById('datatablesSimple');
if (datatablesSimple) {
new simpleDatatables.DataTable(datatablesSimple);
}
});