上一页 1 ··· 40 41 42 43 44 45 46 47 48 ··· 125 下一页
摘要: 看了很多博文,本地也配置了,域名需要结合端口号来访问(多个项目也不可能都是80 的,所以还是需要端口号的) 不需要nginx配置 /etc/host 域名指向127.0.0.1 https://www.cnblogs.com/yaoyu7/p/14591984.html 不需要端口号,需从nginx 阅读全文
posted @ 2022-10-31 10:13 盘思动 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 方法一:nginx 配置 node项目也可如此编译,tips:是proxy_pass,并非proxy_path server { listen 80; #监听端口; server_name local.ping.com; #域名名称 location / { proxy_pass http://12 阅读全文
posted @ 2022-10-28 17:30 盘思动 阅读(343) 评论(0) 推荐(0) 编辑
摘要: array_unshift($arr,['id' => 0,'name' => '超级管理员']); 不用赋值,直接会更改arr值 相对应方法 array_push() 阅读全文
posted @ 2022-10-28 13:26 盘思动 阅读(43) 评论(0) 推荐(0) 编辑
摘要: v-for写在非template上,添加:key没有任何问题,但是写在template上就不行了,加了就报错 虽然不影响页面渲染,但终端一直报错显示,很讨厌; 有时候,页面渲染,还是需要不加div层的基础上渲染的,vscode编辑器有的也有错误红线提示; '<template>' cannot be 阅读全文
posted @ 2022-10-27 19:48 盘思动 阅读(1885) 评论(0) 推荐(0) 编辑
摘要: <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=" 阅读全文
posted @ 2022-10-27 17:45 盘思动 阅读(246) 评论(0) 推荐(0) 编辑
摘要: mac连接mongo 我的mac启动路径 cd /opt/homebrew/opt/mongodb-community@4.4/bin ./mongo 启动mongod 带有配置文件 /usr/local/mongodb/bin/mongod -f /usr/local/mongodb/mongo. 阅读全文
posted @ 2022-10-27 10:54 盘思动 阅读(285) 评论(0) 推荐(0) 编辑
摘要: 数组里面是数组排序 var aqiData = [ ["北京", 90], ["上海", 50], ["福州", 10], ["广州", 50], ["成都", 90], ["西安", 100] ]; var result = aqiData.sort(function(a,b){ return b 阅读全文
posted @ 2022-10-27 09:29 盘思动 阅读(477) 评论(0) 推荐(0) 编辑
摘要: 1.取整 // 丢弃小数部分,保留整数部分 parseInt(5/2) // 2 2.向上取整 // 向上取整,有小数就整数部分加1 Math.ceil(5/2) // 3 3.向下取整 // 向下取整,丢弃小数部分 Math.floor(5/2) // 2 4四舍五入 // 四舍五入 Math.r 阅读全文
posted @ 2022-10-26 14:36 盘思动 阅读(75) 评论(0) 推荐(0) 编辑
摘要: command + shift + f 退出也是这个按钮 阅读全文
posted @ 2022-10-25 18:46 盘思动 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 在 package.json 文件中修改 scripts "scripts": { "serve": "vue-cli-service serve --port 80", "build": "vue-cli-service build", "lint": "vue-cli-service lint" 阅读全文
posted @ 2022-10-25 13:41 盘思动 阅读(79) 评论(0) 推荐(0) 编辑
上一页 1 ··· 40 41 42 43 44 45 46 47 48 ··· 125 下一页