10 2022 档案
摘要:PM2 是带有内置负载平衡器的 Node.js 应用程序的生产过程管理器。可以利用它来简化很多 Node 应用管理的繁琐任务,如性能监控、自动重启、负载均衡等。 安装部署 1、我们一般会把 pm2 安装到全局: npm install pm2 -g pm2 -v 查看安装成功否 2、安装window
阅读全文
摘要:看了很多博文,本地也配置了,域名需要结合端口号来访问(多个项目也不可能都是80 的,所以还是需要端口号的) 不需要nginx配置 /etc/host 域名指向127.0.0.1 https://www.cnblogs.com/yaoyu7/p/14591984.html 不需要端口号,需从nginx
阅读全文
摘要:方法一:nginx 配置 node项目也可如此编译,tips:是proxy_pass,并非proxy_path server { listen 80; #监听端口; server_name local.ping.com; #域名名称 location / { proxy_pass http://12
阅读全文
摘要:array_unshift($arr,['id' => 0,'name' => '超级管理员']); 不用赋值,直接会更改arr值 相对应方法 array_push()
阅读全文
摘要:v-for写在非template上,添加:key没有任何问题,但是写在template上就不行了,加了就报错 虽然不影响页面渲染,但终端一直报错显示,很讨厌; 有时候,页面渲染,还是需要不加div层的基础上渲染的,vscode编辑器有的也有错误红线提示; '<template>' cannot be
阅读全文
摘要:<div class="bumen" v-for="(item,bmmyIndex) in bmmyd_top4" :key="bmmyIndex"> <div class="title">{{item.name}}</div> <div class="zhuzi_con"> <div v-if="
阅读全文
摘要:mac连接mongo 我的mac启动路径 cd /opt/homebrew/opt/mongodb-community@4.4/bin ./mongo 启动mongod 带有配置文件 /usr/local/mongodb/bin/mongod -f /usr/local/mongodb/mongo.
阅读全文
摘要:数组里面是数组排序 var aqiData = [ ["北京", 90], ["上海", 50], ["福州", 10], ["广州", 50], ["成都", 90], ["西安", 100] ]; var result = aqiData.sort(function(a,b){ return b
阅读全文
摘要:1.取整 // 丢弃小数部分,保留整数部分 parseInt(5/2) // 2 2.向上取整 // 向上取整,有小数就整数部分加1 Math.ceil(5/2) // 3 3.向下取整 // 向下取整,丢弃小数部分 Math.floor(5/2) // 2 4四舍五入 // 四舍五入 Math.r
阅读全文
摘要:command + shift + f 退出也是这个按钮
阅读全文
摘要:在 package.json 文件中修改 scripts "scripts": { "serve": "vue-cli-service serve --port 80", "build": "vue-cli-service build", "lint": "vue-cli-service lint"
阅读全文
摘要:https://datav.aliyun.com/portal/school/atlas/area_generator https://www.jb51.net/article/245799.htm https://blog.csdn.net/weixin_46926182/article/deta
阅读全文
摘要:1.ifconfig 2.网络 网络便好设置查看 ip:端口号即可,很奇怪,也不需要win更改电脑配置 这样就可以了...
阅读全文
摘要:m1 芯片安装mongodb, 用brew方法安装的 brew install mongodb-community@4.4 启动mongodb命令进程--(按照个人理解,用这命令启动,会自动加载,/opt/homebrew/etc/mongod.conf文件) brew services start
阅读全文
摘要:vue 中 animate-number 组件可实现效果 formatter(value){ //return num.toFixed(2) if (!value) return '0' var intPart = Number(value).toFixed(0) // 获取整数部分 var int
阅读全文
摘要:demo 1 <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>css设置高和宽相等~~</title> <style> *{ margin: 0; padding: 0; } .box{ width: 300px;/* 也可以用
阅读全文
摘要:<!DOCTYPE html> <html lang="zh"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="ie=edge" /> <title>div围绕中心点旋转demo</title>
阅读全文
摘要:环状图,距离左边文字的距离 init_hot_matter_top5(){ console.log(' init_hot_matter_top5 '); let myChart = this.$echarts.init(document.getElementById('hot_matter_top5
阅读全文
摘要:按照text-overflow: ellipsis;使用规则,在标签样式中添加该属性未生效,例如: 写道 .text { text-overflow: ellipsis; } 长文字长文字长文字长文字长文字长文字长文字长文字长文字长文字长文字长文字长文字长文字 之后,发现并没有达到我们想要的预期效果
阅读全文
摘要:在命令终端输入 open 需要打开的目录 打开一个文件夹,点击顶部前往 点击个人 https://baijiahao.baidu.com/s?id=1730595679451779285&wfr=spider&for=pc
阅读全文
摘要:最近,拉取一套代码,下来一看,什么都没有,原因: master分支没有内容,切换到代码所用分支,就可以了 git branch -a 分支没有内容,切换分支可以看到内容 https://blog.csdn.net/qq_17011423/article/details/82850973
阅读全文
摘要:https://blog.csdn.net/weixin_43913272/article/details/89603971
阅读全文