上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 88 下一页
摘要: function convertBase64UrlToBlob(urlData) { let bytes = window.atob(urlData.split(",")[1]); //去掉url的头,并转换为byte //处理异常,将ascii码小于0的转换为大于0 let ab = new Ar 阅读全文
posted @ 2022-06-20 19:23 徐同保 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 问题: npm ERR! ERESOLVE unable to resolve dependency tree 解决方案: npm i --legacy-peer-deps 参考: https://blog.csdn.net/jolinoy/article/details/123951491 在NP 阅读全文
posted @ 2022-06-13 14:47 徐同保 阅读(31) 评论(0) 推荐(0) 编辑
摘要: <template> <div class="m-video-player-wrap" @contextmenu="handleMouse"> </div> </template> handleMouse(e) { e.preventDefault(); }, //禁用f12键 handleNoDe 阅读全文
posted @ 2022-05-27 21:05 徐同保 阅读(8) 评论(0) 推荐(0) 编辑
摘要: handleRefresh() { const nowIndex = location.href.indexOf("&now="); location.href = location.href.slice(0, nowIndex) + "&now=" + Date.now(); window.loc 阅读全文
posted @ 2022-05-26 09:03 徐同保 阅读(4) 评论(0) 推荐(0) 编辑
摘要: const obj = { a: 1 } console.log(obj.a) //1 //console.log(obj.b.c) //报错 console.log(obj.b?.c) //undefined, 不报错, 可选链(.?) //空值合并运算符(??) const a = 0 cons 阅读全文
posted @ 2022-05-18 15:40 徐同保 阅读(1) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi 阅读全文
posted @ 2022-04-28 14:01 徐同保 阅读(14) 评论(0) 推荐(0) 编辑
摘要: justify-content 用于设置或检索弹性盒子元素在主轴(横轴)方向上的对齐方式。 https://www.runoob.com/cssref/css3-pr-justify-content.html?_t_t_t=0.9588430565985012 align-items 属性定义fle 阅读全文
posted @ 2022-04-26 16:05 徐同保 阅读(3) 评论(0) 推荐(0) 编辑
摘要: href字段为转码成base64格式的css文件 ,企业微信会把这个样式添加到iframe中 import { Base64 } from 'js-base64' new WwLogin({ id: 'm-wx-qrcode', appid: appId, agentid: agentId, red 阅读全文
posted @ 2022-04-22 17:24 徐同保 阅读(12) 评论(0) 推荐(0) 编辑
摘要: //千分符 const formatNum = (num) => { if (num null) { return 0 } let value = num + ''; value = value.replace(/,/g, ""); if (/^[1-9]\d*$/.test(value)) { v 阅读全文
posted @ 2022-04-21 16:13 徐同保 阅读(0) 评论(0) 推荐(0) 编辑
摘要: https://element.eleme.cn/#/zh-CN/component/quickstart yarn add babel-plugin-component babel.config.js: module.exports = { presets: ['@vue/cli-plugin-b 阅读全文
posted @ 2022-04-15 16:10 徐同保 阅读(0) 评论(0) 推荐(0) 编辑
上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 88 下一页