05 2023 档案

// 读取url转为base64
摘要:urlContentToDataUri(url) { return fetch(url) .then(response => response.blob()) .then(blob => new Promise(callback => { let reader = new FileReader(); 阅读全文

posted @ 2023-05-19 10:05 IT丶Hatcher 阅读(142) 评论(0) 推荐(0) 编辑

监听浏览器各个标签间的切换
摘要:document.addEventListener('visibilitychange',function(e){ console.log(document.visibilityState); let state = document.visibilityState if(state == 'hid 阅读全文

posted @ 2023-05-05 17:23 IT丶Hatcher 阅读(59) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示