摘要: 安装vuex npm install vuex@next --save-dev vuex简单使用 store.js import { createStore } from 'vuex' // 创建一个新的 store 实例 const store = createStore({ state () { 阅读全文
posted @ 2021-06-21 03:01 胡勇健 阅读(4902) 评论(0) 推荐(1)
摘要: vue-router安装 npm install vue-router@4 --save-dev vue-router使用 router.js import { createRouter, createWebHistory } from 'vue-router' import Component1 阅读全文
posted @ 2021-06-21 02:11 胡勇健 阅读(764) 评论(0) 推荐(0)
摘要: 官网 https://fontawesome.com 安装 npm install --save-dev @fortawesome/fontawesome-free@5.15.3 使用 main.js import { createApp } from 'vue' import App from ' 阅读全文
posted @ 2021-06-20 22:54 胡勇健 阅读(482) 评论(0) 推荐(0)
摘要: 注:实例环境 vue cli构建的项目 安装layui npm install layui@layui@2.6.8 --save-dev 安装jquery npm install jquery@3.6.0 --save-dev main.js 导入插件css,js import { createAp 阅读全文
posted @ 2021-06-20 21:49 胡勇健 阅读(1376) 评论(0) 推荐(0)
摘要: 注:实例环境 vue cli构建的项目 安装bootstrap5 npm install bootstrap@5.0.1 --save-dev main.js 导入css,js import { createApp } from 'vue' import App from './App.vue' i 阅读全文
posted @ 2021-06-20 21:15 胡勇健 阅读(6874) 评论(0) 推荐(3)
摘要: 注:实例环境 vue cli构建的项目 app.vue <template> <Example></Example> </template> <script> import Example from './components/Example' export default { name: 'App 阅读全文
posted @ 2021-06-20 15:03 胡勇健 阅读(162) 评论(0) 推荐(0)
摘要: 注:实例环境 vue cli构建的项目 app.vue <template> <Example></Example> </template> <script> import Example from './components/Example' export default { name: 'App 阅读全文
posted @ 2021-06-20 14:49 胡勇健 阅读(111) 评论(0) 推荐(0)
摘要: 注:实例环境 vue cli构建的项目 app.vue <template> <Example></Example> </template> <script> import Example from './components/Example' export default { name: 'App 阅读全文
posted @ 2021-06-20 14:36 胡勇健 阅读(309) 评论(0) 推荐(0)
摘要: 注:实例环境 vue cli构建的项目 app.vue <template> <Example></Example> </template> <script> import Example from './components/Example' export default { name: 'App 阅读全文
posted @ 2021-06-20 14:09 胡勇健 阅读(116) 评论(0) 推荐(0)
摘要: 注:实例环境 vue cli构建的项目 app.vue <template> <Example></Example> </template> <script> import Example from './components/Example' export default { name: 'App 阅读全文
posted @ 2021-06-20 13:57 胡勇健 阅读(78) 评论(0) 推荐(0)