会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
欢迎加QQ交流:
加
油
!
2
0
2
3
源远流常,一居一安
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
4
5
6
7
8
9
10
11
12
···
17
下一页
2022年3月25日
canvasToTempFilePath: fail SecurityError: The operations is insecure
摘要: 我这里报这个错是因为canvas用到的图片有跨域问题。解决了跨域就对了。 值得一提的是:我用hbuilderX开发的h5。在内置浏览器调试时一切正常。到了部署上线后才报的这个错。
阅读全文
posted @ 2022-03-25 16:39 常安·
阅读(273)
评论(0)
推荐(0)
编辑
uniapp- h5 - app 插件image-tools:图像转为base64、base64存储为图片
摘要: 转载>>
阅读全文
posted @ 2022-03-25 15:53 常安·
阅读(382)
评论(0)
推荐(0)
编辑
2022年3月23日
uniapp-app 打开小程序
摘要: 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)
编辑
2022年3月22日
uniapp-h5之canvans上文本的展示
摘要: 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)
编辑
2022年3月9日
防抖-小程序-input输入频繁时搜索出bug
摘要: 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)
编辑
2022年3月1日
小程序监听-data 或者 子组件properties 数据
摘要: observers: { 'plateInfo': (obj) => { console.log('监听', obj) if(Object.keys(obj).length > 0) { console.log('有数据打印', obj) } } },
阅读全文
posted @ 2022-03-01 09:30 常安·
阅读(246)
评论(0)
推荐(0)
编辑
2022年2月25日
原生微信小程序里类似于计算属性写法
摘要: 可直接在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)
编辑
2022年2月15日
vue3 - 事件处理之事件修饰符
摘要: 内容取自>> <!-- 阻止单击事件冒泡 --> <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)
编辑
2022年1月24日
ctx.createCircularGradient is not a function
摘要: 正确 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)
编辑
2022年1月19日
css 第二排文字居中
摘要: text-align: center; 超过长度 自动换行居中
阅读全文
posted @ 2022-01-19 12:04 常安·
阅读(162)
评论(0)
推荐(0)
编辑
上一页
1
···
4
5
6
7
8
9
10
11
12
···
17
下一页
公告