上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 56 下一页
摘要: 小于11位的小写字母以及数字随机码生成方法如下 方法一 奇妙的写法 Math.random().toString(36) //0.apnsudpxq0 //10位数字符串 Math.random().toString(36).substr(3); //l9vn6iuznn 输出结果 解释 很有意思, 阅读全文
posted @ 2022-11-08 08:55 SultanST 阅读(293) 评论(0) 推荐(0)
摘要: { "editor.quickSuggestions": { "other": true, "comments": true, "strings": true }, "editor.fontSize": 16, "editor.wordWrap": "off", // 永不换行 "merge-con 阅读全文
posted @ 2022-11-08 08:54 SultanST 阅读(45) 评论(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 阅读(20) 评论(0) 推荐(0)
摘要: 小程序的横向滚动生效需要具备以下条件 1.scroll-view 中的需要滑动的元素不可以用 float 浮动; 2.scroll-view 中的包裹需要滑动的元素的大盒子用 display:flex; 是没有作用的; 3.scroll-view 中的需要滑动的元素要用 dislay:inline- 阅读全文
posted @ 2022-11-07 17:13 SultanST 阅读(83) 评论(0) 推荐(0)
摘要: getCurrentPages() 函数用于获取当前页面栈的实例,以数组形式按栈的顺序给出,第一个元素为首页,最后一个元素为当前页面。 注意: 不要尝试修改页面栈,会导致路由以及页面状态错误。 不要在 App.onLaunch 的时候调用 getCurrentPages(),此时page 还没有生成 阅读全文
posted @ 2022-11-07 17:12 SultanST 阅读(54) 评论(0) 推荐(0)
摘要: 1、使用自定义字体传送门准换为base64,使用方法跟iconfont一致 2、小程序官方文档 阅读全文
posted @ 2022-11-07 17:12 SultanST 阅读(40) 评论(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 阅读(21) 评论(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 阅读(52) 评论(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 阅读(134) 评论(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 阅读(65) 评论(0) 推荐(0)
上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 56 下一页