08 2022 档案
摘要:https://jestjs.io/docs/configuration#displayname-string-object jest.config.js: const config = { displayName: { name: '单元测试', color: 'blue' } } module.
阅读全文
摘要:index.test.js: const { redisClient } = require('../../redis/index') const { userTest } = require('../user/unitTest') const { recommendTest } = require
阅读全文
摘要:装包: yarn add jest user.test.js: const { userSum } = require('./user') const { redisClient } = require('../../redis/index') const axios = require('axio
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <title>div带箭头提示框实例</title> <style type="text/css"> .m-box { margin-top: 50px; positio
阅读全文
摘要:在git bash命令行中运行: 参考链接: https://community.chocolatey.org/packages/curl#install https://curl.se/
阅读全文
摘要:安装解压软件: sudo apt-get install unzip 安装bun: curl -fsSL https://bun.sh/install | bash 跳转到root文件夹 无权限的解决办法: chmod 777 /root/ 打开.bashrc文件 vim .bashrc 输入i 进
阅读全文
摘要:mounted() { let a = {} a?.b }, 解决方案: 装包: yarn add @babel/plugin-proposal-optional-chaining 修改babel.config.js: module.exports = { presets: [ '@vue/app'
阅读全文
摘要:在NPM v7中,现在默认安装peerDependencies。 在很多情况下,这会导致版本冲突,从而中断安装过程。 --legacy-peer-deps标志是在v7中引入的,目的是绕过peerDependency自动安装;它告诉 NPM 忽略项目中引入的各个modules之间的相同modules但
阅读全文
摘要:https://www.avuejs.com/crud/crud-tree.html#%E6%99%AE%E9%80%9A%E7%94%A8%E6%B3%95 关键配置: rowKey: "id", rowParentKey: "parent_id", defaultExpandAll: false
阅读全文
摘要:let a = 0.1 let b = 0.2 let sum = a + b let sum1 = (a * 10 + b * 10) / 10 console.log(sum, sum1) const sum2 = 111.1 * 12 const sum3 = 111.1 * 100 * 12
阅读全文
摘要:https://www.avuejs.com/crud/crud-search.html#%E8%87%AA%E5%AE%9A%E4%B9%89%E5%88%97%E6%90%9C%E7%B4%A2 column: { label: "所属课程/课节", prop: "courseLesson",
阅读全文
摘要:const fs = require('fs') const path = require('path') //声明getTime函数,查找关键字,并计算时长 function getTime(buffer) { let start if (buffer.indexOf(Buffer.from('m
阅读全文
摘要:node服务A: const fs = require('fs') let timer let startValue //监控 const toolsMonitor = async (req, res) => { const monitorFilePath = '/temp/log/monitor.
阅读全文
摘要:server { listen 80; server_name yuying-api.xutongbao.top; #配置根目录 location / { proxy_pass http://127.0.0.1:85; } access_log logs/access_yuyingapi.log;
阅读全文
摘要:(error) MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are dis
阅读全文
摘要:Nginx简介 HTTP和反向代理web服务器 Nginx (engine x) 是一个高性能的HTTP和反向代理web服务器,同时也提供了IMAP/POP3/SMTP服务。Nginx是由伊戈尔·赛索耶夫为俄罗斯访问量第二的Rambler.ru站点(俄文:Рамблер)开发的,公开版本1.19.6
阅读全文
摘要:下载地址:https://www.downkuai.com/soft/154741.html 官网: https://resp.app/
阅读全文
摘要:redis下载: https://github.com/tporadowski/redis/releases 通过命令行使用: 通过node访问redis: const redis = require('redis') const redisClient = redis.createClient()
阅读全文
摘要:https://github.com/qiniu/QSunSync 可以批量删除文件,例如前端打包的代码特别多,可以使用这个工具上线静态资源
阅读全文
摘要:http://tinymce.ax-z.cn/configure/content-filtering.php#entity_encoding TinyMCE禁用转义 如: ² 被转义成 ²
阅读全文