随笔分类 -  小程序

摘要:1.在循环列表的时候明明数据还没沾满整个屏幕,但是出现了竖行滚动条 <scroll-view scroll-y="true" style='height:{{winHeight - 100}}px' class='scrollcolumn'> <view style="content: ''; ov 阅读全文
posted @ 2021-05-27 23:04 倔强的烤马铃薯 阅读(12) 评论(0) 推荐(0) 编辑
摘要:1.bindinput 事件 键盘输入时触发 bindinput: function (e) { this.setData({ inputValue: e.detail.value }) }, 2.bindfocus 事件 输入框聚焦时触发 bindfocus : function (e) { th 阅读全文
posted @ 2021-02-05 10:48 倔强的烤马铃薯 阅读(16) 评论(0) 推荐(0) 编辑
摘要:1.在微信官方文档中 找到editor组件 下面有一个示例代码,点击然后在 开发者工具中打开 就会有这几个文件 打开手机进行预览 如果在项目中引入,应该引到pages这个文件下,因为我引导其他文件下就报错了,可能是运用的还不熟练。 有时间了,在具体看看这个富文本 阅读全文
posted @ 2021-01-30 17:46 倔强的烤马铃薯 阅读(5) 评论(0) 推荐(0) 编辑
摘要:Page({ data: { inputValue: '' }, bindKeyInput: function (e) { this.setData({ inputValue: e.detail.value //用this.dada.inputValue=e.detail.value改变不了data 阅读全文
posted @ 2021-01-30 16:57 倔强的烤马铃薯 阅读(6) 评论(0) 推荐(0) 编辑
摘要:小程序自定义搜索框固定在头部。 代码示例: <view class="inputtop"> <input type="text" placeholder="输入内容进行检索" class='input' placeholder-class="placeholder" bindblur="onBind 阅读全文
posted @ 2020-11-08 15:19 倔强的烤马铃薯 阅读(31) 评论(0) 推荐(0) 编辑
摘要:当小程序发布后,还具有调试的功能,在app.js中找到wx.setEnableDebug,把 enableDebug设置为fale. wx.setEnableDebug({ enableDebug: false }) 阅读全文
posted @ 2020-11-08 15:05 倔强的烤马铃薯 阅读(4) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示