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