摘要:
阅读全文
摘要:
安装解压软件: 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; 阅读全文