会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
letleon
ฅ^•ﻌ•^ฅ
博客园
首页
新随笔
联系
管理
上一页
1
···
3
4
5
6
7
2020年4月23日
小程序SetData设置数组对象,SetData 新增数据, SetData Push新数据
摘要: 作者:李留白 原文:微信小程序 setData 的坑 遇到的问题: 1 this.setData({ 2 Data[0].name:"喵喵" 3 }) 解决办法: 1 var param = {}; 2 var string = "Data["+变量+"].name; 3 param[string]
阅读全文
posted @ 2020-04-23 17:24 letleon
阅读(4854)
评论(0)
推荐(0)
2020年4月21日
小程序 swiper bindChange 抖动解决方法
摘要: <swiper bindanimationfinish="Functionr" > 1 function:function(e){ 2 this.setData({ 3 swiperCurrent: e.detail.current 4 }) 5 } 将 bindChange 更换为 bindani
阅读全文
posted @ 2020-04-21 14:20 letleon
阅读(814)
评论(0)
推荐(0)
小程序 scroll-view 无法触发 onReachBottom 解决办法
摘要: <scroll-view bindscrolltolower="YourFunction" lower-threshold="50"></scroll-view> 1 YoourFunction(){ 2 console.log("触底了"); 3 wx.showToast({ 4 title: '
阅读全文
posted @ 2020-04-21 14:11 letleon
阅读(3586)
评论(0)
推荐(0)
2020年4月15日
小程序修改按钮宽高
摘要: app.json "sitemapLocation": "sitemap.json", "style": "v2", 删掉 "style": "v2", 即可使用 css来定义小程序按钮样式了 真是无F可说!
阅读全文
posted @ 2020-04-15 14:35 letleon
阅读(508)
评论(0)
推荐(0)
2020年4月14日
db.collection(变量名)
摘要: 1 data{ 2 DBID: 'dbname' 3 } 4 getdb(){ 5 db.collection(this.data.DBID).get() 6 .then(res =>{ 7 console.log(res.data) 8 }) 9 } 1 data{ 2 DBID: 'dbname
阅读全文
posted @ 2020-04-14 20:21 letleon
阅读(2173)
评论(0)
推荐(0)
2020年4月7日
小程序图片轮播自适应
摘要: 借(抄)鉴(袭)Thor UI 的!!! index.js 1 Page({ 2 data: { 3 banner: [ 4 "http://gw.alicdn.com/tfscom/i2/27574552/TB2LLz8ugJkpuFjSszcXXXfsFXa_!!27574552.jpg", 5
阅读全文
posted @ 2020-04-07 16:40 letleon
阅读(445)
评论(0)
推荐(0)
2020年4月4日
微信小程序 MD5引用
摘要: 模块化:https://developers.weixin.qq.com/miniprogram/dev/framework/app-service/module.html MD5.JS 1 function md5(string) { 2 function md5_RotateLeft(lValu
阅读全文
posted @ 2020-04-04 16:00 letleon
阅读(1249)
评论(0)
推荐(1)
2020年4月1日
Typecho 增加固定字段
摘要: 方法一 1.首先数据表 typecho_contents 中新建一个 test_url 字段,类型可为字符串。 2.后台模板文件 admin/write-post.php 表单中插入: <p class="mono url-slug"> <label for="slug" class="sr-onl
阅读全文
posted @ 2020-04-01 21:53 letleon
阅读(919)
评论(0)
推荐(0)
2020年3月6日
无界鼠标-Mouse without Borders
摘要: 最近有个需求~ 想使用一套鼠标键盘控制桌上的另一台电脑~ 最开始使用的 Share Mouse 感觉挺不错的~有点贵~ 最后找到了微软出的 无界鼠标-Mouse without Borders 稳定好用~有时间看看能不能汉化了~ - -! https://www.microsoft.com/en-u
阅读全文
posted @ 2020-03-06 17:05 letleon
阅读(483)
评论(0)
推荐(0)
上一页
1
···
3
4
5
6
7
公告