摘要: // 去除IOS input和textarea上部内阴影、去除IOS border圆角 -webkit-appearance: none; // 去除IOS input圆角 border-radius: 0; 阅读全文
posted @ 2019-10-27 12:43 绿谷 阅读(391) 评论(0) 推荐(0) 编辑
摘要: 1. 字体家族的选择属性是:font-family,多个用逗号隔开。当字体中拥有一个或者多个空格,或者拥有特殊的符号如#、$则需要用引号将其括起来 font-family: Arial, "Microsoft YaHei", "微软雅黑", sans-serif 2. 行距建议用百分比来定义,常用的 阅读全文
posted @ 2019-10-27 12:38 绿谷 阅读(652) 评论(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 绿谷 阅读(4571) 评论(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 绿谷 阅读(10463) 评论(0) 推荐(0) 编辑
摘要: https://lbs.qq.com/webservice_v1/guide-suggestion.html 1. 通过jsonp方式使用 2. 如果遇到报错"请求来源未被授权, 此次请求来源域名:",不要设置域名白名单 阅读全文
posted @ 2019-10-27 11:39 绿谷 阅读(4681) 评论(0) 推荐(0) 编辑