会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
绿谷
博客园
首页
新随笔
联系
订阅
管理
1
2
3
4
5
···
8
下一页
2020年5月15日
Vue打包报错Module build failed: SyntaxError: Unexpected token
摘要: 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 绿谷
阅读(3128)
评论(0)
推荐(1)
2019年12月13日
flex布局space-between(around)最后一行左对齐
摘要: <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 绿谷
阅读(3253)
评论(0)
推荐(0)
Duplicate keys detected: '2'. This may cause an update error.
摘要: key值冲突 解决办法: :key=" index + '^-^' "
阅读全文
posted @ 2019-12-13 15:00 绿谷
阅读(6738)
评论(0)
推荐(0)
2019年11月2日
微信浏览器清楚缓存的方法
摘要: Android 微信浏览器打开debugx5.qq.com,勾选要清楚的缓存,然后刷新即可 IOS 在微信设置 - 通用 - 存储空间中清楚缓存,然后刷新即可
阅读全文
posted @ 2019-11-02 15:59 绿谷
阅读(1246)
评论(0)
推荐(0)
解决new file()在IOS下不兼容问题
摘要: 先看一下file的浏览器兼容问题 解决方法 将base64转成Blob再上传 dataURLtoFile(dataurl, filename) { //转成blob function dataURLtoBlob(toDataURL) { var arr = toDataURL.split(","),
阅读全文
posted @ 2019-11-02 15:54 绿谷
阅读(1652)
评论(0)
推荐(0)
2019年10月27日
去除ios上input输入框上方的阴影
摘要: // 去除IOS input和textarea上部内阴影、去除IOS border圆角 -webkit-appearance: none; // 去除IOS input圆角 border-radius: 0;
阅读全文
posted @ 2019-10-27 12:43 绿谷
阅读(402)
评论(0)
推荐(0)
前端不同设备的网页字体设置
摘要: 1. 字体家族的选择属性是:font-family,多个用逗号隔开。当字体中拥有一个或者多个空格,或者拥有特殊的符号如#、$则需要用引号将其括起来 font-family: Arial, "Microsoft YaHei", "微软雅黑", sans-serif 2. 行距建议用百分比来定义,常用的
阅读全文
posted @ 2019-10-27 12:38 绿谷
阅读(735)
评论(0)
推荐(0)
Vue进行请求拦截
摘要: /** * 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 绿谷
阅读(4597)
评论(0)
推荐(0)
Vue路由拦截
摘要: router.beforeEach((to, from, next) => { //拦截指定路由 if(to.path === '/home'){ //todo }else{ scrollTo(0, 0); next(); } })
阅读全文
posted @ 2019-10-27 12:09 绿谷
阅读(1997)
评论(0)
推荐(0)
js判断当前是ios还是android
摘要: 1. 判断是ios还是android 2. 判断是PC端还是M端
阅读全文
posted @ 2019-10-27 11:57 绿谷
阅读(10493)
评论(0)
推荐(0)
1
2
3
4
5
···
8
下一页
公告