範例互動拖放拖放此範例展示如何使用原生的 拖放事件 來實作具有拖放功能的側邊欄。index.htmlApp.svelte<script lang="ts"> const data: string = "world"; </script> <h1>Hello {data}</h1> <style> h1 { font-size: 1.5rem; } </style>唯讀在 Stackblitz 中開啟在 Codesandbox 中開啟功能概覽