会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Sultan-ST
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
17
18
19
20
21
22
23
24
25
···
56
下一页
2022年11月8日
vscode常用配置
摘要: { "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)
2022年11月7日
小程序左滑删除
摘要: ####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)
日常常用css样式大全,超出隐藏,不换行,省略号,两行超出隐藏,不换行,省略号,CSS中划线(删除线)样式代码 (价格),a超链接下划线,css 3个4个5个字两边对齐,鼠标手形状,垂直...
摘要: 小程序的横向滚动生效需要具备以下条件 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()的使用
摘要: 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修改远程仓库地址
摘要: ###方法有三种: 修改命令 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)
为什么有时 map 会返回含 undefined 的数组?
摘要: 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和从A ~ Z的字符
摘要: ####小写字母获取 //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)
移动端滚动选择器mobileSelect.js(模拟微信小程序的组件滚动选择器)
摘要: 一款多功能的移动端滚动选择器,支持单选到多选、支持多级级联、提供自定义回调函数、提供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
下一页
公告