会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
我的世界蹦擦擦
CnBlogs
Home
New Post
Contact
Admin
Subscription
上一页
1
2
3
4
5
下一页
2021年7月19日
ts全局注册axios
main.ts import axios from '@/api/index.ts' Vue.prototype.$axios = axios; 在src根目录下新建ts文件 vue-prototype.d.ts import Vue from 'vue'; import axios from '.
Read More
posted @ 2021-07-19 14:38 我的世界蹦擦擦
Views(154)
Comments(0)
Diggs(0)
2021年7月12日
重复点击菜单。路由重复被点击时报错
在router中加入 const originalPush = VueRouter.prototype.push VueRouter.prototype.push = function push (location) { return originalPush.call(this, location
Read More
posted @ 2021-07-12 10:14 我的世界蹦擦擦
Views(48)
Comments(0)
Diggs(0)
2021年7月2日
uniapp后端返回的图片不能显示,转base64并显示
发送请求 request({ method: "GET", // 请求方式 url: "url地址", // 请求url responseType:'arraybuffer', // 一定要写 data: data // 参数 }) 发送请求拿到返回数据后转换base64格式 .then(res =
Read More
posted @ 2021-07-02 12:56 我的世界蹦擦擦
Views(1456)
Comments(0)
Diggs(0)
2021年6月15日
TypeError: Cannot read property 'get' of undefined"
报错的原因是项目缺少 vue-resource 文件 解决: npm 引入文件 main.js 重新运行项目,问题解决
Read More
posted @ 2021-06-15 10:13 我的世界蹦擦擦
Views(2890)
Comments(0)
Diggs(0)
2021年6月10日
css实现盒子水平垂直居中--3种常用方法
需要居中显示的子盒子 <body> <div class="box">我要居中显示</div> </body> 一、子盒子拥有固定的长宽 1、绝对定位 + margin负间距 .box { background: red; width: 200px; height: 200px; position:
Read More
posted @ 2021-06-10 14:49 我的世界蹦擦擦
Views(418)
Comments(0)
Diggs(0)
2021年5月31日
前端md5加密
下载安装MD5 在main.js中添加md5为公用方法 对需要加密的数据直接调用 this.$md5(加密数据) 打印加密后的数据可以发现加密成功
Read More
posted @ 2021-05-31 15:48 我的世界蹦擦擦
Views(166)
Comments(0)
Diggs(0)
2021年4月13日
uniapp引入echarts-renderjs插件,formatter自定义函数在app端不生效
echarts-renderjs插件中,配置formatter函数在H5端可以,在APP端不生效 (此方法对uniapp中使用randerjs引入echarts,formatter函数不生效的情况应该都有用,在 setOption前 重新给formatter赋值即可) 在你引用的echarts组件中
Read More
posted @ 2021-04-13 16:37 我的世界蹦擦擦
Views(2186)
Comments(0)
Diggs(0)
2021年3月25日
js获取对象object的全部属性名
var obj = { name: '姓名', id: 12, sex: '男' } 获取对象obj中的全部属性名组成的数组 const keyObj = Object.keys(obj) // 获取对象全部属性名称keyobj = ['name', 'id', 'sex'] 获取对象obj中的全部
Read More
posted @ 2021-03-25 15:06 我的世界蹦擦擦
Views(75)
Comments(0)
Diggs(0)
2021年3月24日
BFC
BFC(Block formatting context )“块级格式上下文”。 是用于布局块级盒子的一块渲染区域,是一个独立的区域,与这个区域之外的部分毫无关系,BFC区域内部的元素如何布局如何设置也不会影响到区域外的元素。 简单来说,他就像在大海内独立的一座小岛,外界怎么样都不会影响到这座小岛,
Read More
posted @ 2021-03-24 15:19 我的世界蹦擦擦
Views(83)
Comments(0)
Diggs(0)
2021年3月9日
父组件中添加v-if,父传子接收不到值
父组件引用的子组件上添加 v-if 判断 <el-date-picker v-if=“type” // 父组件引用的子组件上添加v-if判断 :clearable="false" @change="changeDate()" value-format="yyyy-MM-dd" v-model="st
Read More
posted @ 2021-03-09 14:21 我的世界蹦擦擦
Views(930)
Comments(0)
Diggs(0)
上一页
1
2
3
4
5
下一页
公告