上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 56 下一页
摘要: { "editor.quickSuggestions": { "other": true, "comments": true, "strings": true }, "editor.fontSize": 16, "editor.wordWrap": "off", // 永不换行 "merge-con 阅读全文
posted @ 2022-11-08 08:54 SultanST 阅读(62) 评论(0) 推荐(0)
摘要: ####index.wxml文件 <view class="touch-item {{item.isTouchMove ? 'touch-move-active' : ''}}" data-index="{{index}}" wx:for="{{list}}" wx:key> <view class 阅读全文
posted @ 2022-11-07 17:13 SultanST 阅读(41) 评论(0) 推荐(0)
摘要: 小程序的横向滚动生效需要具备以下条件 1.scroll-view 中的需要滑动的元素不可以用 float 浮动; 2.scroll-view 中的包裹需要滑动的元素的大盒子用 display:flex; 是没有作用的; 3.scroll-view 中的需要滑动的元素要用 dislay:inline- 阅读全文
posted @ 2022-11-07 17:13 SultanST 阅读(99) 评论(0) 推荐(0)
摘要: getCurrentPages() 函数用于获取当前页面栈的实例,以数组形式按栈的顺序给出,第一个元素为首页,最后一个元素为当前页面。 注意: 不要尝试修改页面栈,会导致路由以及页面状态错误。 不要在 App.onLaunch 的时候调用 getCurrentPages(),此时page 还没有生成 阅读全文
posted @ 2022-11-07 17:12 SultanST 阅读(113) 评论(0) 推荐(0)
摘要: 1、使用自定义字体传送门准换为base64,使用方法跟iconfont一致 2、小程序官方文档 阅读全文
posted @ 2022-11-07 17:12 SultanST 阅读(58) 评论(0) 推荐(0)
摘要: ###方法有三种: 修改命令 git remote set-url origin [url] 先删后加 git remote rm origin git remote add origin [url] 直接修改.git/config文件 vim .git/config 阅读全文
posted @ 2022-11-07 17:11 SultanST 阅读(52) 评论(0) 推荐(0)
摘要: <!--components/nodata/nodata.wxml--> <!--其中的图片nodata.img从UI图获取--> <view class="nodata" style="margin-top:{{marTop}}rpx;"> <image src="/images/nodata.p 阅读全文
posted @ 2022-11-07 17:11 SultanST 阅读(67) 评论(0) 推荐(0)
摘要: var numbers = [1, 2, 3, 4]; var filteredNumbers = numbers.map(function(num, index) { if(index < 3) { return num; } }); console.log(filteredNumbers ) / 阅读全文
posted @ 2022-11-07 16:57 SultanST 阅读(152) 评论(0) 推荐(0)
摘要: ####小写字母获取 //a-z var arr = []; for (var i = 97; i <= 122; i++) { // 接受一个指定的 Unicode 值,然后返回一个字符串 arr.push(String.fromCharCode(i)); } console.log(arr);/ 阅读全文
posted @ 2022-11-07 16:57 SultanST 阅读(81) 评论(0) 推荐(0)
摘要: 一款多功能的移动端滚动选择器,支持单选到多选、支持多级级联、提供自定义回调函数、提供update函数二次渲染、重定位函数、兼容pc端拖拽等等.. 特性 原生js移动端选择控件,不依赖任何库 可传入普通数组或者json数组 可根据传入的参数长度,自动渲染出对应的列数,支持单项到多项选择 自动识别是否级 阅读全文
posted @ 2022-11-07 16:56 SultanST 阅读(708) 评论(0) 推荐(0)
上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 56 下一页