Skip to content

Instantly share code, notes, and snippets.

@kymtwyf
Created August 3, 2017 14:55
Show Gist options
  • Save kymtwyf/7e50b93029ce7d633f1c5e1c41b6edd0 to your computer and use it in GitHub Desktop.
Save kymtwyf/7e50b93029ce7d633f1c5e1c41b6edd0 to your computer and use it in GitHub Desktop.
weixin-js-sdk, jssdk, wkwebview, wechat, 微信, chooseImage, previewImage, localIds,

微信企业号里面img直接填src无效问题

看这里 还有这里

大概需要用__wxjs_is_wkwebview判断是不是wkwebview, 如果是的话就用getLocalImgData得到base64的图片内容贴到src里面,如果不是就正常处理用localid即可。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment