咏竹莉
where there is a will,there is a way
摘要: at() 方法接收一个整数值并返回该索引的项目,允许正数和负数,正数是从头开始索引,负数是丛尾开始索引 找不到就返回undefined 1. const array1 = [5,12,8,130,44]; console.log(array1.at(2)); // 8 索引从0开始 console. 阅读全文
posted @ 2023-11-07 09:43 咏竹莉 阅读(53) 评论(0) 推荐(0) 编辑
摘要: JSON.parse('true') JSON.parse('false') 阅读全文
posted @ 2023-04-13 17:12 咏竹莉 阅读(361) 评论(0) 推荐(0) 编辑
摘要: 微信小程序switch 不让事件向上冒泡的方法: 给switch上加个空catchtap事件就不会向上冒泡了 <switch checked="{{item.checked}}" catch:tap='aa' data-index="{{index}}" bindchange="changeOnTe 阅读全文
posted @ 2023-03-24 13:50 咏竹莉 阅读(38) 评论(0) 推荐(0) 编辑
摘要: 还是css3实现的效果: .transfBg { position: absolute; width: 480rpx !important; height: 480rpx !important; left: 50%; top: 50%; margin: -240rpx 0 0 -240rpx; an 阅读全文
posted @ 2023-03-24 11:30 咏竹莉 阅读(288) 评论(0) 推荐(0) 编辑
摘要: padStart() 标准内置对象: String.Prototype.padStart() ES2017引入了字符串补全长度的功能,如果某个字符串不够指定长度,会在头部或尾部补全。padStart() 用于头部补全,padEnd() 用于尾部补全。 str.padStart(2, 0) // 够两 阅读全文
posted @ 2023-03-23 17:20 咏竹莉 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 第一步:打开微信开发者工具,然后点击菜单栏的设置 第二步: 点击通用设置 第三步: 进入设置后,点击扩展 第四步:左侧选择合适的扩展插件,并点击进入插件介绍页面 第五步:点击获取按钮就可以了 阅读全文
posted @ 2023-01-06 16:25 咏竹莉 阅读(844) 评论(0) 推荐(0) 编辑
摘要: element ui el-date-picker和value-format 不一致导致输入框不显示 阅读全文
posted @ 2022-12-28 11:08 咏竹莉 阅读(340) 评论(0) 推荐(0) 编辑
摘要: @click="scope.row.status == 1 ? '' : blockUp(scope.row) " 阅读全文
posted @ 2022-11-23 13:42 咏竹莉 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 为了将弹窗更方便的调用,封装了组件,但是发现一个问题, 外部样式类在组件中是无法正常使用的。 也就说在组件的wxss中是无法正常使用.weui-half-screen-dialog 这个外部样式类,然后看层级结构直接使用 ,weui-show .weui-hale-screen-dialog 来设置 阅读全文
posted @ 2022-09-22 15:47 咏竹莉 阅读(55) 评论(0) 推荐(0) 编辑
摘要: <el-checkbox class="selectAll" :indeterminate="isIndeterminate" v-model="checkAll" @change="handleCheckAllChange">全选</el-checkbox> <el-checkbox-group 阅读全文
posted @ 2022-08-03 10:38 咏竹莉 阅读(239) 评论(0) 推荐(0) 编辑