摘要: 原理:利用小程序盏队 let pagetotal = getCurrentPages(),//获取盏队 thispage = pagetotal[pagetotal.length - 1],//子页面 parpage = pagetotal[pagetotal.length - 2]//父页面 // 阅读全文
posted @ 2020-04-28 20:04 吹泡泡的泡泡君 阅读(946) 评论(0) 推荐(0) 编辑
摘要: 本地存储(Storage) 初始化本地存储: onLoad: function (options) { let that = this wx.getStorage({ key: 'searchlist', success: function (res) { console.log(res) that 阅读全文
posted @ 2020-04-24 19:47 吹泡泡的泡泡君 阅读(990) 评论(0) 推荐(0) 编辑
摘要: <div id="loading"> <i></i> </div> #loading{ display: block; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 999; background: #ff 阅读全文
posted @ 2019-12-11 18:31 吹泡泡的泡泡君 阅读(244) 评论(0) 推荐(0) 编辑
摘要: <div class="inform_content_text"> <textarea name="name" placeholder="其他理由..." rows="8" cols="80" id="txt"></textarea> <p class="textNumberLength" styl 阅读全文
posted @ 2019-11-22 16:46 吹泡泡的泡泡君 阅读(603) 评论(0) 推荐(0) 编辑
摘要: JRoll,一款能滚起上万条数据,具有滑动加速、回弹、缩放、滚动条、滑动事件等功能,兼容CommonJS/AMD/CMD模块规范,开源,免费的轻量级html5滚动插件。 官网:http://www.chjtx.com/JRoll/ 演示地址:http://www.chjtx.com/JRoll/de 阅读全文
posted @ 2019-06-03 11:27 吹泡泡的泡泡君 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 1.闭包实现。 2.第一次调用后,把func函数值空。func= function(){}; 3.设置一个值,通过boolean来控制后面的调用。flag 阅读全文
posted @ 2019-05-30 17:30 吹泡泡的泡泡君 阅读(1245) 评论(0) 推荐(0) 编辑