上一页 1 2 3 4 5 6 7 8 9 10 ··· 16 下一页
摘要: 依赖 "xlsx": "^0.16.0" 用法 import XLSX from 'xlsx' <input type="file" ref="inputFile" accept=".xls,.xlsx,.txt" @change="readFile($event)" /> async readFi 阅读全文
posted @ 2022-05-13 11:24 混名汪小星 阅读(217) 评论(0) 推荐(0)
摘要: js加密的好处: 1.用js对私密信息加密可避免在网络中传输明文信息,被人截取数据包而造成数据泄露。 2.避免缓存中自动缓存密码.比如在使用谷歌浏览器登陆时,输入的用户名和密码会自动缓存,下次登陆时无需输入密码就可以实现登陆,这样就给别人留下漏洞,当别人用你电脑登陆或把input的type改为tes 阅读全文
posted @ 2022-05-11 11:36 混名汪小星 阅读(1574) 评论(0) 推荐(0)
摘要: 示例版本 "quill": "^1.3.7", 引入插件 import Quill from 'quill' import 'quill/dist/quill.snow.css' 绑定dom <div class="main-text" ref="editor" :content="content" 阅读全文
posted @ 2022-04-19 14:31 混名汪小星 阅读(1150) 评论(0) 推荐(0)
摘要: 1.host文件路径 C:\Windows\System32\drivers\etc 2.host文件修改代码 # Copyright (c) 1993-2009 Microsoft Corp. # # This is a sample HOSTS file used by Microsoft TC 阅读全文
posted @ 2022-03-28 14:28 混名汪小星 阅读(153) 评论(0) 推荐(0)
摘要: 1.参考: G6 TreeGraph树图默认展开几层节点 graph.data(data) graph.render() graph.fitCenter() // 移到图中心 setTimeout(() => { // 1 默认展开两层节点,之后,重新渲染 G6.Util.traverseTree( 阅读全文
posted @ 2022-03-17 15:50 混名汪小星 阅读(9341) 评论(3) 推荐(0)
摘要: 官网地址:http://momentjs.cn/ 使用 currentDay && current < moment().endOf('day’);//当天之前的不可选,包括当天 currentDay < moment().subtract(1, 'day')//当天之前的不可选,不包括当天 tim 阅读全文
posted @ 2022-03-14 19:21 混名汪小星 阅读(40) 评论(0) 推荐(0)
摘要: 效果 如果使用 //以vue中使用为例 mounted() { const btn = this.$refs['fixed-group'].querySelector('.fixed-link') new Inertia(btn) }, Inertia.js源码 /** * 吸附按钮 */ var 阅读全文
posted @ 2022-02-11 10:41 混名汪小星 阅读(218) 评论(0) 推荐(0)
摘要: Day.js 一个极简的处理时间和日期的 JavaScript 库,和 Moment.js 的 API 设计保持一样, 但体积仅有2KB。 npm install dayjs 基本用法 import dayjs from 'dayjs' dayjs().format('YYYY-MM-DD HH:m 阅读全文
posted @ 2022-01-27 11:44 混名汪小星 阅读(160) 评论(0) 推荐(0)
摘要: 1.开启gzip压缩 compression-webpack-plugin const CompressionPlugin = require('compression-webpack-plugin') // gzip压缩处理 chainWebpack: (config) => { if(isPro 阅读全文
posted @ 2022-01-15 16:45 混名汪小星 阅读(196) 评论(0) 推荐(0)
摘要: template部分 <template> <div class="codeEditBox" :style="{height: height + 'px'}"> <editor ref="aceEditor" v-model="options.value" //初始化显示是内容 @init="edi 阅读全文
posted @ 2021-12-28 17:24 混名汪小星 阅读(4594) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 16 下一页