上一页 1 2 3 4 5 6 7 8 9 ··· 20 下一页
摘要: var projectsId=[1,2,3,4,5,6,add,7,8],newArr=[1,2,3,5,7,8,10], arr3=[]; for (var key = 0; key < projectsId.length; key++) { var stra = projectsId[key]; 阅读全文
posted @ 2021-12-21 14:30 MiniDuck 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 现实: 字母,数字都会存在上述的问题,不会主动换行所以我的需要添加css: word-break:break-all; word-wrap:break-word; so解决: 阅读全文
posted @ 2021-12-20 09:57 MiniDuck 阅读(220) 评论(0) 推荐(0) 编辑
摘要: WXML: <view class="smallImg" bindtap="upload" data-uploadAttribute='cover'> <image mode='widthFix' src='{{item.cover}}' class="bigImg"></image> </view 阅读全文
posted @ 2021-11-16 17:15 MiniDuck 阅读(83) 评论(0) 推荐(0) 编辑
摘要: 就是用了async / await,突然就不支持了。后来感谢度娘解决办法流程:Ctrl+R 命令:npm init(一直回车到底)命令: npm install regenerator@0.13.1这样就生成了文件夹 此时:将node_modules/regenerator-runtime/runt 阅读全文
posted @ 2021-11-04 17:48 MiniDuck 阅读(993) 评论(0) 推荐(1) 编辑
摘要: 一:将默认多选框checkbox的默认选中背景红色改为绿色 checkbox .wx-checkbox-input{ border-radius:50%; width:20px;height:20px; } checkbox .wx-checkbox-input.wx-checkbox-input- 阅读全文
posted @ 2021-10-26 14:54 MiniDuck 阅读(2568) 评论(0) 推荐(0) 编辑
摘要: /** * 获取最近3天日期 * @param {*} day */ getDay: function (day) { var that = this; var today = new Date(); var targetday_milliseconds = today.getTime() + 10 阅读全文
posted @ 2021-10-22 14:53 MiniDuck 阅读(864) 评论(0) 推荐(0) 编辑
摘要: drawText: function (ctx, str, leftWidth, initHeight, titleHeight, canvasWidth) { var lineWidth = 0; var num = 1; var lastSubStrIndex = 0; //每次开始截取的字符串 阅读全文
posted @ 2021-10-22 14:45 MiniDuck 阅读(569) 评论(0) 推荐(0) 编辑
摘要: ES6从数组中删除指定元素 findIndex()方法返回数组中满足提供的测试函数的第一个元素的索引。否则返回-1。 arr.splice(arr.findIndex(item => item.id data.id), 1) 举例: var chooseValueid=[9,6,7,8,0,5]; 阅读全文
posted @ 2021-09-23 16:07 MiniDuck 阅读(2393) 评论(1) 推荐(0) 编辑
摘要: 使用微信开放标签:wx-open-launch-weapp; username:务必是gh_开头的小程序原始id path:跳转小程序的地址及参数 务必需要引用http://res2.wx.qq.com/open/js/jweixin-1.6.0.js JSSDK需要配置:openTagList:[ 阅读全文
posted @ 2021-06-01 17:22 MiniDuck 阅读(494) 评论(0) 推荐(0) 编辑
摘要: img[src=""],img:not([src]){ opacity:0; } 阅读全文
posted @ 2021-05-17 13:58 MiniDuck 阅读(882) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 20 下一页