会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
一条丶小咸鱼
博客园
首页
新随笔
联系
管理
订阅
2022年5月26日
动态加载js 动态加载css 判断是否加载完成 判断是否已经引入了某js css文件
摘要: //动态加载 js function loadScript(url,callback) { const script = document.createElement('script'); script.type = 'text/javascript'; script.onload = functi
阅读全文
posted @ 2022-05-26 10:22 一条丶小咸鱼
阅读(346)
评论(0)
推荐(0)
2021年5月27日
js url的“\”转“/”问题
摘要: 记录一下以防忘记 String.raw`https://xcx.langkings.com/uploadimg/100001\202105\25\202105251907131715.mp3`.replace(/\\/g, '/') 返回 https://xcx.langkings.com/uplo
阅读全文
posted @ 2021-05-27 11:05 一条丶小咸鱼
阅读(197)
评论(0)
推荐(0)
2020年12月29日
vue 图片转Base64
摘要: 1.图片地址转Base64 有回调 getBase64(url, callback) { let Img = new Image(), dataURL = ''; let imgExt = this.extname(url); Img.src = url +"?v=" + Math.random()
阅读全文
posted @ 2020-12-29 10:53 一条丶小咸鱼
阅读(8816)
评论(3)
推荐(1)
公告
点击右上角即可分享