Frontend/進階_NUXT框架/nuxt-demo/public/js/datatables-simple-demo.js

10 lines
312 B
JavaScript
Raw Permalink Normal View History

2024-10-31 12:14:22 +08:00
window.addEventListener('DOMContentLoaded', event => {
// Simple-DataTables
// https://github.com/fiduswriter/Simple-DataTables/wiki
const datatablesSimple = document.getElementById('datatablesSimple');
if (datatablesSimple) {
new simpleDatatables.DataTable(datatablesSimple);
}
});