会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
微宇宙
人生如阶梯,每一个阶梯都代表一个层级.
博客园
首页
联系
管理
订阅
上一页
1
2
3
4
5
下一页
2025年9月5日
echarts多个类型展示数据tooltip提示展示错误
摘要: 设置多个legend触发隐藏,图型上tooltip不展示的优化。 tooltip: { show: true, trigger: "axis", formatter: function (params) { var str = ''; params.forEach(function (item) {
阅读全文
posted @ 2025-09-05 14:45 微宇宙
阅读(11)
评论(0)
推荐(0)
2025年9月3日
小程序-文本内容自动换行
摘要: 多个内容自动显示排列方式,如果第一列显示不换行,第二列内容换行显示。 .first{ white-space: nowrap; } .second { word-break: break-word }
阅读全文
posted @ 2025-09-03 14:52 微宇宙
阅读(8)
评论(0)
推荐(0)
2025年8月22日
下拉刷新数据
摘要: 如果是下拉加载数据的写法。 onPullDownRefresh() { wx.showNavigationBarLoading() //在标题栏中显示加载 this.getDatas(); setTimeout(function () { wx.hideNavigationBarLoading()
阅读全文
posted @ 2025-08-22 10:12 微宇宙
阅读(4)
评论(0)
推荐(0)
2025年7月14日
小程序-输入框跟随键盘弹起
摘要: 当表单的 输入框在底部时,手机上要弹出键盘,必须把输入框往上弹,需要设置输入框height高度在键盘的位置。 将inputBoxBottom变量设置给底部输入框外层的view标签: <view class="input-box" style="bottom:{{inputBoxBottom}}px"
阅读全文
posted @ 2025-07-14 16:37 微宇宙
阅读(69)
评论(0)
推荐(0)
js 保留两位小数
摘要: 设置金额带有浮点数的设置。oninput(4.223) oninput(val,limit = 2) { if(val.indexOf(".") == -1){ if(val.length > 17){ val = val.substr(0,17) } } val = val.replace(/[^
阅读全文
posted @ 2025-07-14 15:35 微宇宙
阅读(17)
评论(0)
推荐(0)
小程序-打开地理位置,导航
摘要: 默认在wxml上面tap绑定事件,点击打开地理位置。 validationPosition() { wx.getSetting({ success: (res) => { if (res.authSetting['scope.userLocation']) { // 定位权限已开启 wx.getLo
阅读全文
posted @ 2025-07-14 15:33 微宇宙
阅读(34)
评论(0)
推荐(0)
2025年5月9日
小程序 滚动功能
摘要: <scroll-view class='scroll' scroll-y="true" bindscrolltolower="bindscrolltolower"> 垂直滚动写入js // 滚动事件bindscrolltolower() { if (this.moreData) { this.pag
阅读全文
posted @ 2025-05-09 14:22 微宇宙
阅读(7)
评论(0)
推荐(0)
2025年4月21日
小程序-checkbox样式
摘要: 在小程序设置布局样式的代码如下: /*checkbox 选项框大小 */ checkbox .wx-checkbox-input { width: 36rpx; height: 36rpx; /* border-radius: 50%; */ /* border-color: #2ea7e0; */
阅读全文
posted @ 2025-04-21 16:17 微宇宙
阅读(84)
评论(0)
推荐(0)
2025年4月17日
小程序-mpsearch搜索
摘要: 小程序用第三方组件 wechat-miniprogram / weui,需要注意引入 <mp-searchbar ext-class="inputlable" class="search-content" />组件之后,不能在组件的引用类上设置高度,比如给.inputlable 类行高可以设置36p
阅读全文
posted @ 2025-04-17 14:18 微宇宙
阅读(28)
评论(0)
推荐(0)
2025年4月2日
小程序缓存
摘要: 在使用小程序内置的picker组件,设置了bindchange事件,第一次接口通过setdata存数据arr,但是下次切换bindchange事件的时候,中途数据没有改变。
阅读全文
posted @ 2025-04-02 11:16 微宇宙
阅读(6)
评论(0)
推荐(0)
上一页
1
2
3
4
5
下一页
公告