:::

2. Vue 入門

  1. 基本架構(只有被 mount 的元件才能被Vue控制,以外的元件不行)
    <!DOCTYPE html>
    <html lang="en">
    
    <head>
        <meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>Vue3 基本頁面</title>
    </head>
    
    <body>
        <div id="app"></div>
        <script src="https://unpkg.com/vue@next"></script>
        <script>
            const App = {
                setup() {
                    return {};
                },
            };
            Vue.createApp(App).mount("#app");
        </script>
    </body>
    
    </html>

 


:::

書籍目錄

展開 | 闔起

https%3A%2F%2Fcampus-xoops.tn.edu.tw%2Fmodules%2Ftad_book3%2Fpage.php%3Ftbsn%3D33%26tbdsn%3D1725

計數器

今天: 2764276427642764
昨天: 3755375537553755
總計: 4458603445860344586034458603445860344586034458603