上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 97 下一页
摘要: 1、创建环境 conda create -n 环境名 python=版本 2、切换环境 conda activate 环境名 3、导入 pip install -r requirements.txt 4、生成 pip freeze > requirements.txt 阅读全文
posted @ 2025-01-24 18:04 市丸银 阅读(332) 评论(0) 推荐(0)
摘要: 实用 # 配置文件 .DS_Store .idea/ # 编译文件 __pycache__/ *.py[cod] *$py.class # Django 项目中的日志文件和本地配置文件 *.log local_settings.py db.sqlite3 db.sqlite3-journal # 虚 阅读全文
posted @ 2025-01-24 17:47 市丸银 阅读(75) 评论(0) 推荐(0)
摘要: 生成x-y Math.round(Math.random()*(y-x)+x) 阅读全文
posted @ 2025-01-14 18:43 市丸银 阅读(15) 评论(0) 推荐(0)
摘要: 1、安装nvm控制node版本 2、下载安装nvm https://nvm.uihtm.com/ 3、清缓存,删依赖,重新下载 npm cache clean --force rm -rf node_modules rm package-lock.json npm install 阅读全文
posted @ 2025-01-11 13:33 市丸银 阅读(18) 评论(0) 推荐(0)
摘要: 1、全局api Vue.config.xxx app.config.xxx Vue.component app.component Vue.directive app.directive Vue.mixin app.mixin Vue.use app.use Vue.prototype app.co 阅读全文
posted @ 2025-01-10 19:22 市丸银 阅读(11) 评论(0) 推荐(0)
摘要: 1、异步引入组件 import { defineAsyncComponent } from 'vue'; const ChildData = defineAsyncComponent(() => import('./components/ChildData.vue')) 2、使用Suspense包裹 阅读全文
posted @ 2025-01-10 18:59 市丸银 阅读(20) 评论(0) 推荐(0)
摘要: Teleport是一种能够将组件html结构移动到指定位置的技术 <template> <div> <button @click="isShow = true">弹窗</button> <Teleport v-if="isShow" to="body"> <div class="dialog"> < 阅读全文
posted @ 2025-01-10 18:33 市丸银 阅读(15) 评论(0) 推荐(0)
摘要: 1、isRef 2、isReactive 3、isReadonly 4、isProxy:检查一个对象是否由reactive或readonly方法创建代理 阅读全文
posted @ 2025-01-10 18:01 市丸银 阅读(14) 评论(0) 推荐(0)
摘要: 一、作用 祖孙组件实现通信 二、过程 父组件 provide()提供数据,后代组件inject()选项,开始使用这些数据 三、语法 1、祖组件 setup() { let car = reactive({ name: 'su7', print:30 }) provide('car',car) ret 阅读全文
posted @ 2025-01-10 17:06 市丸银 阅读(47) 评论(0) 推荐(0)
摘要: 自定义ref <template> <input type="text" v-model="msg"> <h2>{{ msg }}</h2> </template> <script> import { customRef, ref } from 'vue'; export default { nam 阅读全文
posted @ 2025-01-10 16:30 市丸银 阅读(16) 评论(0) 推荐(0)
上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 97 下一页