2025年6月3日
摘要:
hooks >useUploadByPices /** * 分片上传成功后提交表单数据到服务器 * @module useUploadByPieces */ import { ref, reactive } from 'vue' import { useStore } from 'vuex' imp
阅读全文
posted @ 2025-06-03 07:11
铭の
阅读(16)
推荐(0)
2025年5月18日
摘要:
<template> <div ref="chartRef" style="width: 100%; height: 700px;"></div> </template> <script setup> import { ref, onMounted, onBeforeUnmount } from '
阅读全文
posted @ 2025-05-18 22:12
铭の
阅读(10)
推荐(0)
摘要:
<template> <div ref="chartRef" style="width: 800px; height: 500px;"></div> </template> <script setup> import { ref, computed, onMounted, onBeforeUnmou
阅读全文
posted @ 2025-05-18 22:11
铭の
阅读(8)
推荐(0)
2025年1月7日
摘要:
安装sm-cryptonpm install --save sm-crypto 参考一 const sm4 = require('sm-crypto').sm4; import { Base64 } from 'js-base64' // const key = 'facca33012345678f
阅读全文
posted @ 2025-01-07 17:48
铭の
阅读(138)
推荐(0)
2024年12月23日
摘要:
一、NVM 1、NVM下载 安装包下载地址:https://github.com/coreybutler/nvm-windows/releases 2、卸载旧版Node.js 如果电脑上之前已经单独安装了Node.js,先卸载删除,环境变量也删除。 3、安装 解压后双击exe文件安装 安装完成后,自
阅读全文
posted @ 2024-12-23 11:32
铭の
阅读(741)
推荐(0)
2022年11月30日
摘要:
方法一: <style type="text/css"> html{ filter:progid:DXImageTransForm.Microsoft.BasicImage(grayscale=1);-webkit-filter:saturate(0) } </style> 方法二 <style>
阅读全文
posted @ 2022-11-30 20:55
铭の
阅读(64)
推荐(0)
2022年10月18日
摘要:
一、打开全屏 requestFullscreen () { const docElm = document.documentElement if (docElm.requestFullscreen) { docElm.requestFullscreen() } else if (docElm.msR
阅读全文
posted @ 2022-10-18 14:58
铭の
阅读(613)
推荐(1)
2022年3月28日
摘要:
<template> <div class="home"> <div class="table-wrap"> <el-table class="tylTable" ref="tableEle" :data="tableData" style="width: 100%; margin-bottom:
阅读全文
posted @ 2022-03-28 11:29
铭の
阅读(2421)
推荐(1)
2022年2月21日
摘要:
由于Vue3.x中删除了on 和 off,因此不能借助于一个单独的Vue实例来实现全局事件的发布和订阅与取消订阅(也就是跨组件通讯) 安装mitt库 npm i mitt -S 使用mitt库 在单独的文件暴露出事件总线对象 // mitt库默认导出的是一个函数,我们需要执行它从而得到事件总线的对象
阅读全文
posted @ 2022-02-21 18:11
铭の
阅读(1186)
推荐(0)
2021年9月24日
摘要:
方案一:jsonp 利用 <script> 标签没有跨域限制的漏洞,网页可以得到从其他来源动态产生的 JSON 数据。JSONP请求一定需要对方的服务器做支持才可以。 SONP优点是简单兼容性好,可用于解决主流浏览器的跨域数据访问的问题。缺点是仅支持get方法具有局限性,不安全可能会遭受XSS攻击。
阅读全文
posted @ 2021-09-24 09:57
铭の
阅读(288)
推荐(0)