:::

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>

 


:::

書籍目錄

展開 | 闔起

快速登入


http%3A%2F%2Fcampus-xoops.tn.edu.tw%2Fmodules%2Ftad_book3%2Fpage.php%3Ftbdsn%3D1725%26tbsn%3D33

計數器

今天: 907907907
昨天: 3068306830683068
總計: 8077412807741280774128077412807741280774128077412