如上 App.svelte 中在 <script> 裡import 了另一個 Img 元件、設了一個date 變數,在 <style> 中如同HTML 用法設CSS,剩下的部分就是元件markup,可透過 {} 來塞入變數 ...
確定! 回上一頁