![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
前端
CH妖梦
这个作者很懒,什么都没留下…
展开
-
小程序uploadFile上传文件异步转同步的解决办法
项目场景:环境:微信小程序框架:UniApp问题描述:上传图片方法使用async、await标记不能操作微信API同步文件上传操作uni.chooseImage({ // 选择图片(异步) count: 4-that.profileImage.length, sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有 sourceType: ['album'], //从相册选择 success: async (res) =&原创 2021-08-03 10:21:40 · 5566 阅读 · 2 评论 -
uniapp小程序wangEditor富文本图片、样式失效不显示
项目场景:使用Uniapp的小程序问题描述:使用wangEditor4的富文本编辑器,在uniapp页面中插入 出现大量不显示的问题Web页面中的显示正常:Uniapp小程序中问题:<rich-text :nodes="introduce"></rich-text>// Uniapp代码,也可使用v-html插入html文本 原因分析:百度了好多原因,大部分都是图片比例过大的之后将img添加上 style=“width: 100%” 的问题,我这里的原因可原创 2021-02-23 20:29:35 · 5835 阅读 · 2 评论 -
wangEditor 出现The given range isn‘t in document.
wangEditor 出现The given range isn't in document.问题解决问题wangEditor版本:^4.6.6Vue版本:2.6.10原代码:<template> <div class="app-container"> <p> 编辑简介页面 </p> <div> <div id="toolbar-container" class="toolbar原创 2021-02-22 21:02:26 · 569 阅读 · 0 评论