上一页 1 2 3 4 5 6 ··· 12 下一页
摘要: swiper 使用 1.npm下载安装swiper,现在swiper默认支持vue3,所以我们使用低版本 npm install swiper@5.4.5 2.在需要用到的组件引入swiper import Swiper from "swiper" 3.在组件style中引入swiper插件的css 阅读全文
posted @ 2022-05-10 17:34 禾耳 阅读(1673) 评论(0) 推荐(0)
摘要: 参考网址 1.网易H5技巧 2.移动端适配的一些技巧 阅读全文
posted @ 2022-04-30 21:31 禾耳 阅读(25) 评论(0) 推荐(0)
摘要: 使用 active-class="active" 或者 :class="{ active: $route.path '/' }" <router-link to="/" tag="li" :class="{ active: $route.path '/' }" > <a href="javascri 阅读全文
posted @ 2022-04-30 17:15 禾耳 阅读(388) 评论(0) 推荐(0)
摘要: 使用vue+vuex+elementUI+axios+mongoDb+express实现分页 1.后端准备 使用nodeJs写好分页查询数据的接口,前提是已经初始化了数据库 personel.js // 个人中心路由 const express = require('express'); //引入e 阅读全文
posted @ 2022-04-10 09:47 禾耳 阅读(87) 评论(0) 推荐(0)
摘要: 在vue中使用axios 获取get请求的/api/personer路径 1.axios封装文件中 base.js //路径配置文件 const base = { psrList:'myApi/api/personer' //分页字段查询 } export default base index.js 阅读全文
posted @ 2022-04-09 22:27 禾耳 阅读(916) 评论(0) 推荐(0)
摘要: 1.将字符串转化json对象 let str='{a:1,b:2}' //方法1 var json = JSON.parse(str); //方法2 var json = eval("(" + str + ")"); //方法3 var json = (new Function("return " 阅读全文
posted @ 2022-04-09 14:16 禾耳 阅读(36) 评论(0) 推荐(0)
摘要: 准备 Vuex的store文件personalAblout.js 组件:Personal.vue 实现 在路由中的状态管理的数据可以动态变化。 personalAblout.js const personalAbout = { namespaced: true, //开启命名空间 actions: 阅读全文
posted @ 2022-04-04 00:06 禾耳 阅读(121) 评论(0) 推荐(0)
摘要: 图例 代码 总结 阅读全文
posted @ 2022-03-29 22:34 禾耳 阅读(25) 评论(0) 推荐(0)
摘要: <input type="text" :ref="value.id" @blur="editBlur" v-model="value.content" v-if="!value.isEditShow" /> <button @click="updataItem(value.id)"> </butto 阅读全文
posted @ 2022-03-19 16:02 禾耳 阅读(677) 评论(0) 推荐(0)
摘要: el 写法1,挂载点 var vm=new Vue({//vm el:'#app', data:{ text:"数据" } }) 写法2.利用$mount将数据“放/挂载”到vm上去 var vm=new Vue({//vm data:{ //data写法1.对象式 text:"数据" } }) v 阅读全文
posted @ 2022-03-09 21:39 禾耳 阅读(56) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 12 下一页