08 2022 档案

摘要:https://jestjs.io/docs/configuration#displayname-string-object jest.config.js: const config = { displayName: { name: '单元测试', color: 'blue' } } module. 阅读全文
posted @ 2022-08-31 17:59 徐同保 阅读(4) 评论(0) 推荐(0) 编辑
摘要:index.test.js: const { redisClient } = require('../../redis/index') const { userTest } = require('../user/unitTest') const { recommendTest } = require 阅读全文
posted @ 2022-08-29 18:35 徐同保 阅读(4) 评论(0) 推荐(0) 编辑
摘要:装包: yarn add jest user.test.js: const { userSum } = require('./user') const { redisClient } = require('../../redis/index') const axios = require('axio 阅读全文
posted @ 2022-08-29 18:33 徐同保 阅读(5) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <title>div带箭头提示框实例</title> <style type="text/css"> .m-box { margin-top: 50px; positio 阅读全文
posted @ 2022-08-29 10:44 徐同保 阅读(3) 评论(0) 推荐(0) 编辑
摘要:在git bash命令行中运行: 参考链接: https://community.chocolatey.org/packages/curl#install https://curl.se/ 阅读全文
posted @ 2022-08-24 15:55 徐同保 阅读(24) 评论(0) 推荐(0) 编辑
摘要:安装解压软件: sudo apt-get install unzip 安装bun: curl -fsSL https://bun.sh/install | bash 跳转到root文件夹 无权限的解决办法: chmod 777 /root/ 打开.bashrc文件 vim .bashrc 输入i 进 阅读全文
posted @ 2022-08-22 12:06 徐同保 阅读(35) 评论(0) 推荐(0) 编辑
摘要:mounted() { let a = {} a?.b }, 解决方案: 装包: yarn add @babel/plugin-proposal-optional-chaining 修改babel.config.js: module.exports = { presets: [ '@vue/app' 阅读全文
posted @ 2022-08-19 15:23 徐同保 阅读(71) 评论(0) 推荐(0) 编辑
摘要:在NPM v7中,现在默认安装peerDependencies。 在很多情况下,这会导致版本冲突,从而中断安装过程。 --legacy-peer-deps标志是在v7中引入的,目的是绕过peerDependency自动安装;它告诉 NPM 忽略项目中引入的各个modules之间的相同modules但 阅读全文
posted @ 2022-08-18 10:16 徐同保 阅读(131) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2022-08-15 13:37 徐同保 阅读(29) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2022-08-15 10:52 徐同保 阅读(12) 评论(0) 推荐(0) 编辑
摘要: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", 阅读全文
posted @ 2022-08-11 13:29 徐同保 阅读(215) 评论(0) 推荐(0) 编辑
摘要:const fs = require('fs') const path = require('path') //声明getTime函数,查找关键字,并计算时长 function getTime(buffer) { let start if (buffer.indexOf(Buffer.from('m 阅读全文
posted @ 2022-08-08 13:38 徐同保 阅读(22) 评论(0) 推荐(0) 编辑
摘要:node服务A: const fs = require('fs') let timer let startValue //监控 const toolsMonitor = async (req, res) => { const monitorFilePath = '/temp/log/monitor. 阅读全文
posted @ 2022-08-05 14:59 徐同保 阅读(6) 评论(0) 推荐(0) 编辑
摘要:server { listen 80; server_name yuying-api.xutongbao.top; #配置根目录 location / { proxy_pass http://127.0.0.1:85; } access_log logs/access_yuyingapi.log; 阅读全文
posted @ 2022-08-04 12:02 徐同保 阅读(6) 评论(0) 推荐(0) 编辑
摘要:(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 阅读全文
posted @ 2022-08-04 11:59 徐同保 阅读(5) 评论(0) 推荐(0) 编辑
摘要:Nginx简介 HTTP和反向代理web服务器 Nginx (engine x) 是一个高性能的HTTP和反向代理web服务器,同时也提供了IMAP/POP3/SMTP服务。Nginx是由伊戈尔·赛索耶夫为俄罗斯访问量第二的Rambler.ru站点(俄文:Рамблер)开发的,公开版本1.19.6 阅读全文
posted @ 2022-08-04 11:08 徐同保 阅读(2) 评论(0) 推荐(0) 编辑
摘要:下载地址:https://www.downkuai.com/soft/154741.html 官网: https://resp.app/ 阅读全文
posted @ 2022-08-03 11:35 徐同保 阅读(7) 评论(0) 推荐(0) 编辑
摘要:redis下载: https://github.com/tporadowski/redis/releases 通过命令行使用: 通过node访问redis: const redis = require('redis') const redisClient = redis.createClient() 阅读全文
posted @ 2022-08-02 14:27 徐同保 阅读(11) 评论(0) 推荐(0) 编辑
摘要:https://github.com/qiniu/QSunSync 可以批量删除文件,例如前端打包的代码特别多,可以使用这个工具上线静态资源 阅读全文
posted @ 2022-08-02 13:56 徐同保 阅读(8) 评论(0) 推荐(0) 编辑
摘要:http://tinymce.ax-z.cn/configure/content-filtering.php#entity_encoding TinyMCE禁用转义 如: ² 被转义成 &sup2; 阅读全文
posted @ 2022-08-02 11:08 徐同保 阅读(34) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示