Win10 禁止F1自动弹出浏览器 bat 文件@echo off taskkill /f /im HelpPane.exe takeown /f %WinDir%\HelpPane.exe icacls %WinDir%\HelpPane.exe /deny Everyone:(X) 2022-10-13 02:24:14 win10 ·
Docker-compose wget https://github.com/docker/compose/releases/download/1.23.0-rc3/docker-compose-Linux-x86_64 mv docker-compose-Linux-x86_64 /usr/local/bin/docker-compose chmod +x /usr/local/bin/docker-compose docker-compose --versioncurl -L https://github.com/docker/compose/releases/dow... 2022-10-10 05:09:47 未分类 ·
WebStorm 版本: 2022.2.2 生成: 222.4167.31 2022年9月15日https://github.com/WishMelz/file/blob/master/2022/2022-jetbrains.zip进入 IDEA 的安装目录进入 /bin 目录下,修改 idea64.exe.vmoptions 配置文件:修改配置文件# 引用补丁,开头必须以 -javaagent: 开头,后面跟着补丁的绝对路径(可根据你实际的位置进行修改),注意路径一定要填写正确,且不能包含中文,否则会导致 webstorm 无法启动 -javaag... 2022-09-21 03:45:00 未分类 猎奇 ·
Vue ts 内置类添加扩展方法编译报错 declare global { interface Number { toFixedR(size:number):number } } 2022-08-26 02:22:16 ts ·
Vue JSX/TSX $attrs用法 <el-table data={this.data} height={this.height} {...{ props: this.$attrs, on: this.$listeners, }} ></el-table> 2022-08-16 02:01:55 Vue JSX ·
Node/包 管理 锁定Node版本// package.json "engines":{ "node": "14.x || 16.xp" }// .npmrc engine-strict = true锁定包npm install -D only-allowonly-allow npm、only-allow pnpm、only-allow yarn// package.json "scripts": { "preinstall": "only-allow npm", ... } 2022-07-31 02:24:00 NodeJS ·
storage封装 /*** * title: storage.js * Author: wish * Email: - * Time: 2022/7/25 21:32 * last: 2022/7/25 21:54 * Desc: 对存储的简单封装 */ import CryptoJS from 'crypto-js'; // 十六位十六进制数作为密钥 const SECRET_KEY = CryptoJS.enc.Utf8.parse("3333e6e143439161"); // 十六位十六进制数作为密钥偏移量 const SECRET_IV... 2022-07-25 10:58:41 JS ·
nodejs 掘金自动签到 const Koa = require('koa'); const schedule = require('node-schedule'); const _request = require('request'); const app = new Koa(); // https://api.juejin.cn/growth_api/v1/check_in? // 自定义 const sessionid = ''; // SessionID const url = ''; // Url const options = { ... 2022-06-23 01:50:27 未分类 ·
Vue滑动验证 created() { const url = 'https://ssl.captcha.qq.com/TCaptcha.js' const script = document.createElement('script') script.type = 'text/javascript' script.src = url document.body.appendChild(script) script.onload = () => { console.log(window... 2022-06-22 01:50:41 未分类 ·
Git 回档回滚 git reset --hard 3b483490bfd5cbc6499a133ce31f063bfc60be54 git push -f 2022-06-22 11:57:26 未分类 ·
px2rem npm i postcss-px2rempostcss.config.js module.exports = { plugins: { autoprefixer: { overrideBrowserslist: ['Android 4.1', 'iOS 7.1', 'Chrome > 31', 'ff > 31', 'ie >= 8'] }, "postcss-px2rem": { remUnit: 36, // 50px = 1rem remPrecision: 2 // ... 2022-06-17 06:01:21 未分类 ·
数字千分位 num = 12345.45678 num.toLocaleString('en-US',{minimumFractionDigits:5}) minimumFractionDigits:保留小数几位 2022-06-16 09:15:28 JS ·
html 导出 pdf import html2canvas from "html2canvas" import JSPDF from "jspdf"封装 printPdf.js // 导出页面为PDF格式 import html2canvas from "html2canvas" import JSPDF from "jspdf" export default { // eslint-disable-next-line install (Vue, options) { Vue.prototype.ExportSavePdf = function (... 2022-06-13 01:45:00 Vue ·
vue-print-nb 打印 npm i vue-print-nb import Print from 'vue-print-nb' use(Print) <a-button :style="{ marginLeft: '6px' }" v-print="'#printTest'">导出PDF</a-button> #printTest 是打印的容器 printSetting:{ id:"printTest", // 打印的容器ID popTitle:"得膜率图表", // 顶部标签 ... 2022-06-10 09:37:22 未分类 ·
echarts 悬浮框内容 tooltip 下 formatter: function (params) { console.log(params); var result = params[0].axisValue + "<br/>"; params.forEach(function (item) { var suffix = '' if(item.seriesName.indexOf('率') !=... 2022-06-09 04:32:22 未分类 ·
Vue2 动态插槽名称透传 <div class="tablesing"> <vxe-grid ref="xGrid" border show-overflow :data="dataSource" :columns="cloneColumns" height="700" :row-config="{ isHover: true, isCurrent: true,height:28 }" :column-config="{ isHover:... 2022-06-07 04:42:45 未分类 ·