<script>
import App from "../App.svelte";
let mylist = [
{'e_id':1, 'e_name':1, 'gen':1, 'addr':1},
{'e_id':2, 'e_name':2, 'gen':2, 'addr':2},
{'e_id':3, 'e_name':3, 'gen':3, 'addr':3}
]
const fn_list = () => {
for(let i=0; i<mylist.length; i++){
}
}
</script>
<table border="1">
<thead>
<tr>
<th>사번</th>
<th>이름</th>
<th>성별</th>
<th>주소</th>
</tr>
</thead>
<tbody>
{#each mylist as e}
<tr>
<th>{e.e_id}</th>
<th>{e.e_name}</th>
<th>{e.gen}</th>
<th>{e.addr}</th>
</tr>
{/each}
</tbody>
</table>
'파이썬 > 수업내용' 카테고리의 다른 글
[Python] Vue - CRUD (0) | 2024.07.16 |
---|---|
[Python] Svelte - MVVM 패턴 으로 CRUD (0) | 2024.07.16 |
[Pytho] Svelte (1) | 2024.07.15 |
[Python] Vue.js (0) | 2024.07.15 |
[Python] Node.js / intellij 설치 다운로드 및 설치하기 (0) | 2024.07.11 |