摘要: 背景:在微信小程序中textarea中的内容会在下拉框内容之上, 代码如下: <view class="bywin-column"> <view class="title"> <text>投诉对象</text> <text class="item-required">*</text> </view> 阅读全文
posted @ 2021-12-15 14:14 诉诉飞飞 阅读(453) 评论(0) 推荐(0) 编辑
摘要: 1.复制数组--(Array.from(), 剩余参数) //array.from() 将类数组对象转成数组let a=[1,4,6,3,4]; let arr1=Array.from(a); arr1.push(9) let arr2=[...a]; arr2.push(8) console.lo 阅读全文
posted @ 2021-07-30 14:44 诉诉飞飞 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 1.arr.find() arr.findIndex() //arr.find--找出第一个符合条件的数组成员,如果没找到,返回undefined //arr.findIndex--找出第一个符合条件的数组成员位置,如果没找到,返回-1 let a=[1,2,4,5,7,3,7]; let b=a. 阅读全文
posted @ 2021-07-30 14:32 诉诉飞飞 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 1.直接修改 let arr=[1,2,3,4,5,6,7]; arr[3]=8; console.log(arr) //[1, 2, 3, 8, 5, 6, 7] 2.arr.splice() let arr=[1,2,3,4,5,6]; arr.splice(2,1,8); console.lo 阅读全文
posted @ 2021-07-30 14:23 诉诉飞飞 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 1.arr.splice() //arr.splice参数(索引--必填,要删除的数--必填,向数组添加的新项目--选填) let arr=[1,2,3,4,5]; arr.splice(2,1); console.log(arr) //[1, 2, 4, 5] 2.delete //会把该下标出的 阅读全文
posted @ 2021-07-30 14:19 诉诉飞飞 阅读(314) 评论(0) 推荐(0) 编辑
摘要: 1.arr.fill()--填充数组 //arr.fill--填充数组 参数(填充的东西,开始位置,结束位置) let aa=new Array(10); aa.fill('默认值',2,5) //[empty × 2, "默认值", "默认值", "默认值", empty × 5] 2.arr.c 阅读全文
posted @ 2021-07-30 14:10 诉诉飞飞 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 1.arr.forEach--替代for循环 //无return let arr=['a','b','c','d','aa','bb','cc']; arr.forEach((item,inx,array)=>{ console.log(item) }) 2.arr.map--做数据交互映射(重新整 阅读全文
posted @ 2021-07-26 20:55 诉诉飞飞 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 备注:其他电脑可以正常操作 就联想 小新忽然出现这个问题错误: 解决方法: 重新克隆一份代码 git clone http://git用户名:git密码@仓库地址例: git用户名:zsgit密码:kkgit 地址:http://code.git 问题解决git地址:git clone http:/ 阅读全文
posted @ 2021-07-02 16:58 诉诉飞飞 阅读(526) 评论(0) 推荐(0) 编辑
摘要: 1.出现页面如下,是偶现。 2.下载uniapp源码查看 "async": { //页面js异步加载配置 "loading": "AsyncLoading", //页面js加载时使用的组件(需注册为全局组件) "error": "AsyncError", //页面js加载失败时使用的组件(需注册为全 阅读全文
posted @ 2021-05-25 15:40 诉诉飞飞 阅读(8240) 评论(1) 推荐(2) 编辑
摘要: 原代码 uni.showModal({ title: "温馨提示", content: "********!", confirmText: "继续完善下一个", showCancel:false, success: (res) => { if (res.confirm) { console.log( 阅读全文
posted @ 2021-04-30 10:36 诉诉飞飞 阅读(1849) 评论(0) 推荐(0) 编辑