会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
90%
sqmw
The awakening is always delayed, there seems to be some fog
博客园
|
首页
|
新随笔
|
新文章
|
联系
|
订阅
|
管理
2023年1月22日
flutter 加载base64图片
摘要: base64 data:image/png;base64,XXX flutter Image.memory( base64.decode( xxx,/// 对应上述的XXX的base64编码部分 ) )
阅读全文
posted @ 2023-01-22 13:31 sqmw
阅读(285)
评论(0)
推荐(0)
编辑
js dom节点的属性不能访问
摘要: 有些时候,我们会发现DOM节点的某个属性通过dom.XXX不能访问 实际上,DOM也是一个对象,当我们通过控制台打印出来后,会发现这个属性并不在DOM节点上面,我们需要先setAttribute,之后访问就没有问题了 [video/img 的 src 或者是其他节点的某些属性,都是默认就有的,直接d
阅读全文
posted @ 2023-01-22 13:14 sqmw
阅读(40)
评论(0)
推荐(0)
编辑
js 操作视频帧
摘要: MDN https://developer.mozilla.org/zh-CN/docs/Web/API/Canvas_API/Manipulating_video_using_canvas 实现原理:通过canvas将正在播放到的一定位置的video图像绘制到canvas上面,之后通过canva转
阅读全文
posted @ 2023-01-22 12:53 sqmw
阅读(258)
评论(0)
推荐(0)
编辑
dart 正则表达式匹配链接
摘要: RegExp RegExp linkRegExp = RegExp(r'(https?|file)://[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]');
阅读全文
posted @ 2023-01-22 12:03 sqmw
阅读(54)
评论(0)
推荐(0)
编辑
dart遍历的时候操作list
摘要: 实际上,在遍历的时候,list对应的内存是被锁住的 List list = [1, 2, 3, 4]; // 这里使用了箭头函数,后面的表达式为true时会删除当前值 list.removeWhere((value) => value == 2); // 当然也能用{} list.removeWhe
阅读全文
posted @ 2023-01-22 12:01 sqmw
阅读(141)
评论(0)
推荐(0)
编辑
公告