会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
欢欢11
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
7
8
9
10
11
12
13
14
15
···
25
下一页
2019年7月14日
js中使用extends实现子类继承父类
摘要: //1.父类 ,可以直接理解成原型对象 protorype class persons { constructor(name,age) { this.name = name; this.age = age; } } //2.子类,在class类中使用extends 关键字实现子类继承父类 ...
阅读全文
posted @ 2019-07-14 23:08 欢欢11
阅读(1662)
评论(0)
推荐(0)
2019年7月9日
react-创建项目
摘要: 1.npm init -y //初始化项目 2.在项目根目录下创建src源代码目录和dist产品目录 3.在src目录下创建index.html 4.安装 webpack npm install --save-dev webpack webpack-cli -g 5.在根目录下创建webpack.config.js文件 module.exports={ ...
阅读全文
posted @ 2019-07-09 22:38 欢欢11
阅读(103)
评论(0)
推荐(0)
2019年7月4日
js根据对象数组中的时间来排序
摘要: dataList:[ { id:"1, name:"li", addtime:'2019-02-06 :08:30' } ] computed: { newdataList: function() { return this.sortKey(this.dataList, "addtime"...
阅读全文
posted @ 2019-07-04 18:13 欢欢11
阅读(8235)
评论(0)
推荐(0)
使用router-view时组件之间的传值
摘要: 1.子组件给父组件传值 父组件: methods:{ getShopCode(value){ conso.log(value); } } 子组件: methods:{ goShopList(value){ this.$emit('getShopCode',value) this.$router.push({nam...
阅读全文
posted @ 2019-07-04 10:05 欢欢11
阅读(8917)
评论(0)
推荐(0)
2019年6月27日
vue中使用Echarts
摘要:
阅读全文
posted @ 2019-06-27 18:02 欢欢11
阅读(191)
评论(0)
推荐(0)
2019年6月18日
wechat针对后台返回base64数据,前台报数据超过最大长度限制问题
摘要: let length = res.length; _this.setData({ imgSrc1: 'data:image/png;base64,' + res.substring(0, Math.ceil(length / 2)) }); _this.setData({ imgSrc2: res.substring (Math.ceil(length / 2)) }); ...
阅读全文
posted @ 2019-06-18 14:47 欢欢11
阅读(696)
评论(0)
推荐(0)
2019年5月27日
微信小程序中base64转换成图片
摘要: //把base64转换成图片 getBase64ImageUrl: function(data) { /// 获取到base64Data var base64Data = data; /// 通过微信小程序自带方法将base64转为二进制去除特殊符号,再转回base64 base64Data = wx.arrayBuf...
阅读全文
posted @ 2019-05-27 14:24 欢欢11
阅读(7812)
评论(1)
推荐(0)
2019年5月17日
wchat小程序中的日期格式化
摘要: 1.微信自带的 const format=require("../../utils/util.js"); var date = format.formatTime(this.data.expirationDate,'Y/M/D'); 2.把2017/8/1 0:00:00转换成 2017-08-011.util.js里面的代码 const formatNumber = n =>...
阅读全文
posted @ 2019-05-17 11:27 欢欢11
阅读(2910)
评论(0)
推荐(0)
2019年5月3日
微信小程序中礼券效果4
摘要: /* 优惠券开始 */ .history .quan { position: relative; width: 94%; height: 240rpx; margin: 20rpx auto; box-sizing: border-box; /* background-color: #fff; */ color: #fff; ...
阅读全文
posted @ 2019-05-03 16:19 欢欢11
阅读(304)
评论(0)
推荐(0)
2019年5月2日
微信小程序中navigateBack的注意事项
摘要: 返回上一层的navigateBack路由要是与配置的tabBar栏目路由相同的话,返回会失效,需换用switchTab
阅读全文
posted @ 2019-05-02 12:23 欢欢11
阅读(2865)
评论(0)
推荐(0)
上一页
1
···
7
8
9
10
11
12
13
14
15
···
25
下一页
公告