摘要: Module build failed: SyntaxError: E:/.../index.js: Unexpected token (6:8) 4 | const routerLazyLoad = filename => { 5 | return () =>> 6 | import ( | ^ 阅读全文
posted @ 2020-05-15 13:18 绿谷 阅读(3026) 评论(0) 推荐(1) 编辑
摘要: <ul class="flex fwrap space-between"> <li v-for="(item,index) in course" :key="index"> //todo </li> <li v-show="course.length%4!=0" v-for="(item1,inde 阅读全文
posted @ 2019-12-13 15:03 绿谷 阅读(3155) 评论(0) 推荐(0) 编辑
摘要: key值冲突 解决办法: :key=" index + '^-^' " 阅读全文
posted @ 2019-12-13 15:00 绿谷 阅读(6604) 评论(0) 推荐(0) 编辑
摘要: Android 微信浏览器打开debugx5.qq.com,勾选要清楚的缓存,然后刷新即可 IOS 在微信设置 - 通用 - 存储空间中清楚缓存,然后刷新即可 阅读全文
posted @ 2019-11-02 15:59 绿谷 阅读(1226) 评论(0) 推荐(0) 编辑
摘要: 先看一下file的浏览器兼容问题 解决方法 将base64转成Blob再上传 dataURLtoFile(dataurl, filename) { //转成blob function dataURLtoBlob(toDataURL) { var arr = toDataURL.split(","), 阅读全文
posted @ 2019-11-02 15:54 绿谷 阅读(1487) 评论(0) 推荐(0) 编辑
摘要: // 去除IOS input和textarea上部内阴影、去除IOS border圆角 -webkit-appearance: none; // 去除IOS input圆角 border-radius: 0; 阅读全文
posted @ 2019-10-27 12:43 绿谷 阅读(389) 评论(0) 推荐(0) 编辑
摘要: 1. 字体家族的选择属性是:font-family,多个用逗号隔开。当字体中拥有一个或者多个空格,或者拥有特殊的符号如#、$则需要用引号将其括起来 font-family: Arial, "Microsoft YaHei", "微软雅黑", sans-serif 2. 行距建议用百分比来定义,常用的 阅读全文
posted @ 2019-10-27 12:38 绿谷 阅读(647) 评论(0) 推荐(0) 编辑
摘要: /** * http响应拦截器 */ import axios from 'axios' import { Toast, Indicator } from 'mint-ui' //Toast提示 import router from '../router' //路由 ///request拦截器 axios.interceptors.request.use(req => { //向请求头添加toke 阅读全文
posted @ 2019-10-27 12:24 绿谷 阅读(4570) 评论(0) 推荐(0) 编辑
摘要: router.beforeEach((to, from, next) => { //拦截指定路由 if(to.path === '/home'){ //todo }else{ scrollTo(0, 0); next(); } }) 阅读全文
posted @ 2019-10-27 12:09 绿谷 阅读(1995) 评论(0) 推荐(0) 编辑
摘要: 1. 判断是ios还是android 2. 判断是PC端还是M端 阅读全文
posted @ 2019-10-27 11:57 绿谷 阅读(10436) 评论(0) 推荐(0) 编辑