摘要: id: ‘’ 注意:是微信小程序的原始ID("g_"开头的字符串) type: 0 微信小程序版本类型可取值: 0-正式版;1-测试版; 2-体验版。 默认值为0。 path:‘pages/index/index’ 微信小程序打开的页面路径 plus.share.getServices( funct 阅读全文
posted @ 2022-02-12 11:24 訫丶修 阅读(314) 评论(0) 推荐(0)
摘要: JS: // 获取系统信息 const systemInfo = wx.getSystemInfoSync(); // 胶囊按钮位置信息 const menuButtonInfo = wx.getMenuButtonBoundingClientRect(); // 导航栏高度 = 状态栏到胶囊的间距 阅读全文
posted @ 2021-12-04 11:35 訫丶修 阅读(131) 评论(0) 推荐(0)
摘要: HTML: <div v-for="(item, index) in list" :key="index"> <input v-model="item.enable_amount" type="number" @input=" numberFixedDigit($event, item, 'enab 阅读全文
posted @ 2021-12-02 17:28 訫丶修 阅读(36) 评论(0) 推荐(0)
摘要: 如何转发别人博客 转载来源 http://blog.csdn.net/yanmantian/article/details/53256765 阅读全文
posted @ 2021-12-02 17:00 訫丶修 阅读(45) 评论(0) 推荐(0)
摘要: 场景: A页面先$emit触发B页面的$on方法,再跳转到B页面。 结果: 第一次跳转无法触发到$on监听的方法,返回A页面再执行就能触发。 $on是一个注册行为,事件需要在注册后,才能被emit触发。 在A页面第一次$emit时,在B页面的$on还没有注册,$emit先于$on执行,自然就无法触发 阅读全文
posted @ 2021-12-02 16:42 訫丶修 阅读(234) 评论(0) 推荐(0)