摘要:
一、复制conda环境 1、下载conda-pack(base环境) pip install conda-pack 2、查看conda环境 conda env list 3、切换打包conda环境 conda activate env_name 4、打包conda环境 conda pack -n e 阅读全文
摘要:
<div ref="test"></div> // 获取DOM this.$ref.test 阅读全文
摘要:
1、创建环境 conda create -n 环境名 python=版本 2、切换环境 conda activate 环境名 3、导入 pip install -r requirements.txt 4、生成 pip freeze > requirements.txt 阅读全文
摘要:
实用 # 配置文件 .DS_Store .idea/ # 编译文件 __pycache__/ *.py[cod] *$py.class # Django 项目中的日志文件和本地配置文件 *.log local_settings.py db.sqlite3 db.sqlite3-journal # 虚 阅读全文
摘要:
生成x-y Math.round(Math.random()*(y-x)+x) 阅读全文
摘要:
1、安装nvm控制node版本 2、下载安装nvm https://nvm.uihtm.com/ 3、清缓存,删依赖,重新下载 npm cache clean --force rm -rf node_modules rm package-lock.json npm install 阅读全文
摘要:
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 阅读全文
摘要:
1、异步引入组件 import { defineAsyncComponent } from 'vue'; const ChildData = defineAsyncComponent(() => import('./components/ChildData.vue')) 2、使用Suspense包裹 阅读全文
摘要:
Teleport是一种能够将组件html结构移动到指定位置的技术 <template> <div> <button @click="isShow = true">弹窗</button> <Teleport v-if="isShow" to="body"> <div class="dialog"> < 阅读全文
摘要:
1、isRef 2、isReactive 3、isReadonly 4、isProxy:检查一个对象是否由reactive或readonly方法创建代理 阅读全文