- 博客(10)
- 问答 (1)
- 收藏
- 关注
原创 获取指定的URL参数值
export function getQueryString(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); var r = window.location.search.substr(1).match(reg); if (r != null) return unescape(r[2]); return null; }
2021-05-13 14:20:17 203 2
原创 解决ElementUI导航栏中的vue-router在3.0版本以上重复点菜单报错问题
解决ElementUI导航栏中的vue-router在3.0版本以上重复点菜单报错问题 const originalPush = VueRouter.prototype.push VueRouter.prototype.push = function push(location) { return originalPush.call(this, location).catch(err => err) }
2021-05-12 09:59:14 115 1
原创 路由懒加载的三种方式(总结)
路由懒加载的三种方式(总结) 1.vue异步组件 { path: '/SchoolDetail', name: 'SchoolDetail', component: () => resolve => require(['@/views/mobile/schoolDetail'],resolve) } 2.es的import() { path: '/SchoolDetail', name: 'SchoolDetail', component: () => import
2021-05-12 09:54:22 671 1
原创 记录h5微信扫码登录以组件方式嵌入
第一步 安装vue-wxlogin 第二步引入组件 <wxlogin :appid="appid" :scope="'snsapi_login'" :theme="'black'" :redirect_uri="encodeURIComponent(redirectUri)" :href="'data:text/css;base64,Ci5pbXBvd2VyQm94IC50aXRsZSB7CgogZGlzcGxheTogbm9uZTsKCn0KCgoKLmltcG93ZXJCb3ggLnF
2020-12-18 13:55:00 345
原创 ElementUI修改主题色记录
第一步命令安装 npm i element-theme -g npm install element-theme-chalk --save-dev 第二步 根目录下创建element-variables.scss /* 改变主题色变量 */ $--color-primary: #fec000; /* 改变 icon 字体路径变量,必需 */ $--font-path: '~element-ui/lib/theme-chalk/fonts'; @import "~element-ui/packag
2020-11-25 14:04:20 290
原创 前端框架 (总结)
## 前端框架 (总结个人用的比较多的,后续会继续补充) ** 混合开发** flutter APP开发 APICloud地址 APP开发 uniapp App以及各大平台小程序 ** 移动端** Vant基于 Vue 2.0 的 Mobile 组件库 Muse-UI 基于 Vue 2.0 实现 提供一个极为简单和优化的方式自定义主题风格 MUI原生UI ** PC端** Element基于Vue 2.0的桌面端组件库 Iview UI一套基于Vue.js的UI组件库 .
2020-11-17 16:39:09 113
原创 vue 父组件如何调用子组件中的方法
父组件调用 html <SearchCom @inputInfo="inputInfo" ref="inputInfoVal"></SearchCom> js 父组件下拉刷新调用子组件清空的值 this.$refs.inputInfoVal.clearIt(); 子组件代码 html <template> <view class="searchCom" > <input type="text" v-model="keyWor
2020-11-16 14:56:26 165
原创 uniapp之小程序附件预览
在这里插入代码片 wx.downloadFile({ url: url, //仅为测试接口,并非真实的 success: function(res) { console.log(res) var postf1 = 'xsl' var filePath = res.tempFilePath wx.openDocument({ filePath: filePath, fileType: postf1,
2020-11-16 14:40:21 1306
空空如也
前端样式相关问题求指教
2020-12-01
TA创建的收藏夹 TA关注的收藏夹
TA关注的人