上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 16 下一页
摘要: { path:"/Home", component:Home }, 代码中 component的配置不能 写成字符串形式,如果写了就会报如上错误,去掉引号即可 阅读全文
posted @ 2022-11-26 11:13 小白字太白 阅读(693) 评论(0) 推荐(0)
摘要: const path=require("path"); const HtmlWebpackPlugin=require("html-webpack-plugin") module.exports={ entry:{ app:'./src/app.js', main:'./src/main.js' } 阅读全文
posted @ 2022-11-24 11:05 小白字太白 阅读(120) 评论(0) 推荐(0)
摘要: webpack.dev.js const path=require("path")//nodejs核心模块 专门用来处理路径问题 const ESLintPlugin = require('eslint-webpack-plugin'); const HtmlWebpackPlugin = requ 阅读全文
posted @ 2022-11-23 17:00 小白字太白 阅读(30) 评论(0) 推荐(0)
摘要: 配置打包文件中 //小于10kb转化直接渲染的base64格式 在 rules 中加入如下配置 { //小于10kb转化直接渲染的base64格式 test: /\.(png|jpe?g|gif|webp)$/, type: 'asset', parser: { dataUrlCondition: 阅读全文
posted @ 2022-11-23 09:31 小白字太白 阅读(23) 评论(0) 推荐(0)
摘要: const path=require("path")//nodejs核心模块 专门用来处理路径问题 module.exports={ entry:"./src/main.js", //输出 output:{ // 文件输出路径 // __dirname nodejs的变量 ,代表当前文件的文件夹目录 阅读全文
posted @ 2022-11-23 08:36 小白字太白 阅读(40) 评论(0) 推荐(0)
摘要: //该文件用于创建vuex中的store //引入vuex import Vue from 'vue' import Vuex from 'vuex' import axios from 'axios'; import { nanoid } from 'nanoid'; //使用插件 Vue.use 阅读全文
posted @ 2022-11-16 15:30 小白字太白 阅读(102) 评论(0) 推荐(0)
摘要: <template> <div class="count"> <h2 > 当前求和为 :{{sum}}</h2> <h3 > 当前求和放大十倍为为 :{{bigSum}}</h3> <h3 > 我在:{{address}} 学习:{{subject}}</h3> <h3 > 下方组件的总人数 : { 阅读全文
posted @ 2022-11-16 14:18 小白字太白 阅读(56) 评论(0) 推荐(0)
摘要: <template> <div class="count"> <h2 > 当前求和为 :{{sum}}</h2> <h3 > 当前求和放大十倍为为 :{{bigSum}}</h3> <h3 > 我在:{{address}} 学习:{{subject}}</h3> <select v-model.nu 阅读全文
posted @ 2022-11-16 10:33 小白字太白 阅读(79) 评论(0) 推荐(0)
摘要: <template> <div class="count"> <h2 > 当前求和为 :{{sum}}</h2> <h3 > 当前求和放大十倍为为 :{{bigSum}}</h3> <h3 > 我在:{{address}} 学习:{{subject}}</h3> <select v-model.nu 阅读全文
posted @ 2022-11-16 10:06 小白字太白 阅读(22) 评论(0) 推荐(0)
摘要: 当state中的数据需要经过加工后在使用 //该文件用于创建vuex中的store //引入vuex import Vue from 'vue' import Vuex from 'vuex' //使用插件 Vue.use(Vuex); //猪备actions--用于响应组件中的动作 const a 阅读全文
posted @ 2022-11-16 09:18 小白字太白 阅读(165) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 16 下一页