会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
诉诉飞飞
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
下一页
2021年12月15日
uniapp 中 form表单 textarea的层级问题
摘要: 背景:在微信小程序中textarea中的内容会在下拉框内容之上, 代码如下: <view class="bywin-column"> <view class="title"> <text>投诉对象</text> <text class="item-required">*</text> </view>
阅读全文
posted @ 2021-12-15 14:14 诉诉飞飞
阅读(532)
评论(0)
推荐(0)
2021年7月30日
数组--其他
摘要: 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 诉诉飞飞
阅读(40)
评论(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 诉诉飞飞
阅读(202)
评论(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 诉诉飞飞
阅读(144)
评论(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 诉诉飞飞
阅读(379)
评论(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 诉诉飞飞
阅读(253)
评论(0)
推荐(0)
2021年7月26日
数组循环
摘要: 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 诉诉飞飞
阅读(169)
评论(0)
推荐(0)
2021年7月2日
联想小新 git push忽然报错 is this a git repository
摘要: 备注:其他电脑可以正常操作 就联想 小新忽然出现这个问题错误: 解决方法: 重新克隆一份代码 git clone http://git用户名:git密码@仓库地址例: git用户名:zsgit密码:kkgit 地址:http://code.git 问题解决git地址:git clone http:/
阅读全文
posted @ 2021-07-02 16:58 诉诉飞飞
阅读(606)
评论(0)
推荐(0)
2021年5月25日
uniapp打包h5 出现'连接服务器超时,点击屏幕重试'的页面
摘要: 1.出现页面如下,是偶现。 2.下载uniapp源码查看 "async": { //页面js异步加载配置 "loading": "AsyncLoading", //页面js加载时使用的组件(需注册为全局组件) "error": "AsyncError", //页面js加载失败时使用的组件(需注册为全
阅读全文
posted @ 2021-05-25 15:40 诉诉飞飞
阅读(11696)
评论(1)
推荐(2)
2021年4月30日
uniapp uni.showModal 在微信小程序不显示,也不报错,在支付宝小程序显示正常
摘要: 原代码 uni.showModal({ title: "温馨提示", content: "********!", confirmText: "继续完善下一个", showCancel:false, success: (res) => { if (res.confirm) { console.log(
阅读全文
posted @ 2021-04-30 10:36 诉诉飞飞
阅读(2122)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
下一页
公告