上一页 1 2 3 4 5 6 ··· 13 下一页
摘要: npm i vue-router@next -S 阅读全文
posted @ 2022-06-06 14:03 hi123hi159 阅读(101) 评论(0) 推荐(0)
摘要: app.vue <template> <div> <h1>App 根组件</h1> <a href="#/home">Home</a>&nbsp; <a href="#/movie">Movie</a>&nbsp; <a href="#/about">About</a>&nbsp; <hr /> < 阅读全文
posted @ 2022-06-06 13:57 hi123hi159 阅读(19) 评论(0) 推荐(0)
摘要: app.vue <template> <div> <h1>App 根组件</h1> <hr /> <!-- 使用组件 --> <my-home></my-home> </div> </template> <script> // 导入组件 import MyHome from './Home.vue' 阅读全文
posted @ 2022-06-06 13:02 hi123hi159 阅读(165) 评论(0) 推荐(0)
摘要: app.vue <template> <div> <h1>App 根组件</h1> <hr /> <!-- 使用自定义组件 --> <my-test> <template #default="{ msg, info }"> <p>{{ msg }}</p> <p>{{ info.address }} 阅读全文
posted @ 2022-06-06 12:48 hi123hi159 阅读(26) 评论(0) 推荐(0)
摘要: app.vue <template> <div> <h1>App 根组件</h1> <hr /> <!-- 使用组件 --> <my-article> <template #header> <h1>滕王阁序</h1> </template> <template #default> <p>豫章故郡,洪 阅读全文
posted @ 2022-06-06 12:20 hi123hi159 阅读(22) 评论(0) 推荐(0)
摘要: app.vue <template> <div> <h1>App 根组件</h1> <hr /> <!-- 使用组件 --> <my-com> </my-com> </div> </template> <script> // 导入组件 import MyCom from './MyCom.vue' 阅读全文
posted @ 2022-06-06 12:03 hi123hi159 阅读(18) 评论(0) 推荐(0)
摘要: app.vue <template> <div> <h1 class="mb-4">App 根组件</h1> <button type="button" class="btn btn-primary" @click="comName = 'MyHome'">首页</button> <button t 阅读全文
posted @ 2022-06-06 11:49 hi123hi159 阅读(185) 评论(0) 推荐(0)
摘要: npm init vite-app 项目名称 cd 项目路径 npm i npm run dev 阅读全文
posted @ 2022-06-02 16:43 hi123hi159 阅读(37) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document< 阅读全文
posted @ 2022-05-31 16:03 hi123hi159 阅读(33) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Docum 阅读全文
posted @ 2022-05-31 15:21 hi123hi159 阅读(13) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 13 下一页