欢迎加QQ交流:
2
0
2
3

03 2022 档案

摘要:不知不觉已经入驻博客两周年了,曾经我都是把难点,忘点记录在笔记上。后来看到别人的分享我也写上了博客,同时也成为了我的乐趣。很高兴。 在两年里零零散散记录了 整整120篇。不能算多好,但是都是点点滴滴的总结。加油! 阅读全文
posted @ 2022-03-31 18:34 常安· 阅读(31) 评论(6) 推荐(0) 编辑
摘要:wx.openSetting({ // 唤醒授权页面 success: res => { console.log('res',res) // 授权成功操作 }, fail: fa => { // 授权失败操作(取消授权) console.log('fa', fa) } }) 阅读全文
posted @ 2022-03-25 16:43 常安· 阅读(49) 评论(0) 推荐(0) 编辑
摘要:我这里报这个错是因为canvas用到的图片有跨域问题。解决了跨域就对了。 值得一提的是:我用hbuilderX开发的h5。在内置浏览器调试时一切正常。到了部署上线后才报的这个错。 阅读全文
posted @ 2022-03-25 16:39 常安· 阅读(338) 评论(0) 推荐(0) 编辑
摘要:plus.share.getServices( res => { let sweixin = null; for (let i in res) { if (res[i].id == 'weixin') { sweixin = res[i]; } } //唤醒微信小程序 if (sweixin) { 阅读全文
posted @ 2022-03-23 15:51 常安· 阅读(377) 评论(0) 推荐(0) 编辑
摘要:ctx.font = 'bold 14px arial';ctx.fillStyle = '#e9e6e6';ctx.fillText('长按图片保存到相册', (this.pwidth -250/eg) / 2 +40/eg,bgImgHeight / eg -150/eg)ctx.fillTex 阅读全文
posted @ 2022-03-22 15:13 常安· 阅读(65) 评论(0) 推荐(0) 编辑
摘要:html: <input type="text" class="input_search" placeholder="搜索周边店铺" bindinput='getInputValue'></input> js: getInputValue(e) { let {input_timeOut} = thi 阅读全文
posted @ 2022-03-09 16:14 常安· 阅读(123) 评论(0) 推荐(0) 编辑
摘要:observers: { 'plateInfo': (obj) => { console.log('监听', obj) if(Object.keys(obj).length > 0) { console.log('有数据打印', obj) } } }, 阅读全文
posted @ 2022-03-01 09:30 常安· 阅读(272) 评论(0) 推荐(0) 编辑

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