欢迎加QQ交流:
2
0
2
3
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 17 下一页
摘要: 我这里报这个错是因为canvas用到的图片有跨域问题。解决了跨域就对了。 值得一提的是:我用hbuilderX开发的h5。在内置浏览器调试时一切正常。到了部署上线后才报的这个错。 阅读全文
posted @ 2022-03-25 16:39 常安· 阅读(273) 评论(0) 推荐(0) 编辑
摘要: 转载>> 阅读全文
posted @ 2022-03-25 15:53 常安· 阅读(382) 评论(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 常安· 阅读(355) 评论(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 常安· 阅读(53) 评论(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 常安· 阅读(107) 评论(0) 推荐(0) 编辑
摘要: observers: { 'plateInfo': (obj) => { console.log('监听', obj) if(Object.keys(obj).length > 0) { console.log('有数据打印', obj) } } }, 阅读全文
posted @ 2022-03-01 09:30 常安· 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 可直接在wxml文件里直接写入直接调用。变量只支持var命名,不支持let const </view> <view class="wx_bgc" style="width: {{filter.percentage(2.9)}}rpx;"></view> </view> </view> <wxs mo 阅读全文
posted @ 2022-02-25 09:56 常安· 阅读(260) 评论(0) 推荐(0) 编辑
摘要: 内容取自>> <!-- 阻止单击事件冒泡 --> <a v-on:click.stop="doThis"></a> <!-- 提交事件不再重载页面 --> <form v-on:submit.prevent="onSubmit"></form> <!-- 修饰符可以串联 --> <a v-on:cl 阅读全文
posted @ 2022-02-15 16:02 常安· 阅读(237) 评论(0) 推荐(0) 编辑
摘要: 正确 const grd = ctx.createCircularGradient(75, 50, 50) grd.addColorStop(0, 'red') grd.addColorStop(1, 'white') ctx.setFillStyle(grd) ctx.fillRect(10, 1 阅读全文
posted @ 2022-01-24 14:54 常安· 阅读(153) 评论(0) 推荐(0) 编辑
摘要: text-align: center; 超过长度 自动换行居中 阅读全文
posted @ 2022-01-19 12:04 常安· 阅读(162) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 17 下一页