会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Mr_R
博客园
首页
新随笔
联系
管理
订阅
12 2018 档案
vue element upload图片 转换成base64
摘要:beforeUpload (file) { var _this = this; var reader = new FileReader(); reader.readAsDataURL(file); reader.onload = function(e) { // 图片base64化 var newU
阅读全文
posted @
2018-12-29 15:47
Mr_R
阅读(5523)
评论(0)
推荐(1)
vue项目 sockjs-node一直报错问题
摘要:vue3下 vue.config.js中 devServer: { host: '0.0.0.0', port: 8080, proxy: { '/': { target: 'http://127.0.0.1:8080/', changeOrigin: true, pathRewrite: { '^
阅读全文
posted @
2018-12-25 09:53
Mr_R
阅读(4677)
评论(0)
推荐(0)
获得省市区 二级 三级 四级 五级联动数据地址
摘要:github: https://github.com/artiely/Administrative-divisions-of-China
阅读全文
posted @
2018-12-20 14:18
Mr_R
阅读(1041)
评论(0)
推荐(0)
vue项目中引入第三方框架
摘要:element-ui npm install element-ui -- save; main.js中 import Element from 'element-ui'; import 'element-ui/lib/theme-chalk/index.css'; Vue.use(Element);
阅读全文
posted @
2018-12-19 15:11
Mr_R
阅读(1055)
评论(0)
推荐(0)
element中使用button会刷新一遍页面
摘要:会刷新: <el-form-item> <button @click="register('form')" class="submitBtn">提交</button> </el-form-item> 不会刷新: <el-form-item> <button @click.prevent="regis
阅读全文
posted @
2018-12-11 09:59
Mr_R
阅读(2230)
评论(0)
推荐(1)
div成圆形分布
摘要:1. css3 ul{ width: 200px; height: 200px; background-color:black; border-radius: 50%; position: relative; margin: 100px; } li{ width: 20px; height: 20p
阅读全文
posted @
2018-12-10 13:22
Mr_R
阅读(1988)
评论(0)
推荐(0)
vue3.0 配置公共请求地址
摘要:正常请求接口: return request({ url: 'http://192.168.1.0/User/cancelUpgrade', method: 'get', params: data }) vue.config.js里配置 记住重启 devServer: { host: '0.0.0.
阅读全文
posted @
2018-12-04 13:40
Mr_R
阅读(3304)
评论(0)
推荐(0)
公告