adong搬砖

导航

2024年9月2日 #

flex+margin(列表布局)

摘要: .item { --n: 8; background-color: red; width: 50px; height: 50px; margin: 10px calc((100% - var(--n)*50px)/var(--n)/2); } #container { width: 600px; h 阅读全文

posted @ 2024-09-02 14:48 adong搬砖 阅读(29) 评论(0) 推荐(0)

2024年8月12日 #

nginx 反向代理

摘要: nginx.conf http { server { listen 80; server_name localhost; location ^~ /api { root html; index index.html; proxy_pass http://localhost:5000/api;#前面加 阅读全文

posted @ 2024-08-12 15:01 adong搬砖 阅读(30) 评论(0) 推荐(0)

2024年4月21日 #

v2 img lazy

摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document< 阅读全文

posted @ 2024-04-21 00:32 adong搬砖 阅读(34) 评论(0) 推荐(0)

cluster

摘要: //cluster模块子进程内置共享端口 const express = require('express') const cluster = require('cluster') if (cluster.isMaster) { //处理主进程逻辑 console.log(`主进程 ${proces 阅读全文

posted @ 2024-04-21 00:05 adong搬砖 阅读(157) 评论(0) 推荐(0)

2024年4月20日 #

cors

摘要: Access-Control-Allow-Origin 允许跨域访问 Access-Control-Allow-Headers 向浏览器发送预检请求,询问是否支持跨域的自定义 header 字段 Access-Control-Allow-Methods 询问是否支持跨域的请求方法 Access-Co 阅读全文

posted @ 2024-04-20 16:15 adong搬砖 阅读(29) 评论(0) 推荐(0)

2024年3月3日 #

主路由子路由视图配置(子app),并且重定向新路由

摘要: 重定向 阅读全文

posted @ 2024-03-03 22:25 adong搬砖 阅读(64) 评论(0) 推荐(0)

python 视图渲染方式

摘要: 1 第二种和第三种都需要改配置文件(需要重启服务) 2 3 阅读全文

posted @ 2024-03-03 22:10 adong搬砖 阅读(14) 评论(0) 推荐(0)

表情大全

摘要: 🐊 😭 😂 😄 😍 😛 🤔 🤐 😴 🤧 🤠 😎 😞 😠 💩 😸 🙈 ❤ 💋 😄 😀 😃 😄 😁 😆 😅 🤣 😂 🙂 🙃 🫠 阅读全文

posted @ 2024-03-03 16:51 adong搬砖 阅读(77) 评论(0) 推荐(0)

2024年2月9日 #

动态路由

摘要: vue2 const fn = require.context('./views', true, /.vue$/) const paths = fn.keys()// 说有views下面.vue结尾文件,路径字符串,数组形式 路由懒加载import参数不能是字符串,可以是模板字符串,半写死 vue3 阅读全文

posted @ 2024-02-09 18:51 adong搬砖 阅读(22) 评论(0) 推荐(0)

2024年2月1日 #

vue指定默认ip端口

摘要: vue2 package.json "scripts": { "serve": "vue-cli-service serve --host 0.0.0.0 --port 5173", "build": "vue-cli-service build" }, vue3 vite.config.json 阅读全文

posted @ 2024-02-01 19:12 adong搬砖 阅读(125) 评论(0) 推荐(0)