<div>
<table>
<thead>
<th>FILE</th>
</thead>
<tbody id="filelist">
<tr>
<td>Testinggg</td>
</tr>
</tbody>
</table>
</div>
<script>
window.onload = function(){
loadFileLibrary();
}
function loadFileLibrary(){
let filelist = document.getElementById('filelist');
filelist.innerHTML = '';
getFile()
.then(files =>{
files.forEach(item => {
filelist.innerHTML += `<tr>
<td>${item.filename}</td>
</tr>`;
});
}).catch(err => console.error('error :', err));
}
</script>
<div>
<table>
<thead>
<th>FILE</th>
</thead>
<tbody id="filelist">
<tr>
<td>Testinggg</td>
</tr>
</tbody>
</table>
</div>
<script>
window.onload = function(){
loadFileLibrary();
}
function loadFileLibrary(){
let filelist = document.getElementById('filelist');
filelist.innerHTML = '';
getFile()
.then(files =>{
files.forEach(item => {
filelist.innerHTML += `<tr>
<td>${item.filename}</td>
</tr>`;
});
}).catch(err => console.error('error :', err));
}
</script>