1,在views 中定义一个接口(随便定义) 2,接口实例如下:(index是接口返回HTTPResponse,get_all_url是触发搜集url的函数) def index(request): from demo.urls import urlpatterns # 导入总路由的urlpatte ...
分类:
Web程序 时间:
2021-01-13 11:36:17
阅读次数:
0
问题记录:v-for循环获取img src变量动态渲染时,不显示图片 <li v-for="(item,index) in menuData" :key="item.id"> <div> <img :src="item.iconPath" alt=""> </div> </li><script>ex ...
分类:
其他好文 时间:
2021-01-13 11:36:04
阅读次数:
0
Vuex的作用 组件通信(兄弟组件) 跨页面通信 Vuex使用 创建vuex实例 vuex项目初始化后,src目录会多一个store/index.js,里面会进行vuex的初始化 import Vue from 'vue'import Vuex from 'vuex';?Vue.use(Vuex)? ...
分类:
其他好文 时间:
2021-01-13 11:35:25
阅读次数:
0
swiper:https://www.swiper.com.cn/usage/index.html 安装swiper cnpm i -S swiper 在功能组件中定义Swiper组件并设置好插槽 <template> <div class="swiper-container"> <div clas ...
分类:
其他好文 时间:
2021-01-13 11:31:56
阅读次数:
0
前言 pandas中包含的数据结构共有三种: 1、Series 2、DataFrame 3、Time-series 其中Series和DataFrame是两种常见的数据结构,Time-series为时间序列,这里暂且不去详细讲解。 一、Series Series是一维数组,与Numpy中的一维arr ...
分类:
其他好文 时间:
2021-01-13 11:03:49
阅读次数:
0
SpringBoot+MyBatis+PostgreSQL配置 1.前置依赖配置 首先我们需要引入maven的依赖包 连接PostgreSQL时需要手动指定schema位置,否则,连接上的database会默认使用public这个内置的schema,导致在查询别的schema下的表时,会报类似如下的 ...
分类:
数据库 时间:
2021-01-13 11:00:30
阅读次数:
0
1、安装 BartyCrouch github地址 安装 brew install bartycrouch 更新 brew upgrade bartycrouch 2、生成storyboard Main.strings和 Localizable.strings 3、执行如下命令 1、cd ~/Des ...
分类:
其他好文 时间:
2021-01-13 10:58:29
阅读次数:
0
一. Vue是什么 Vue (pronounced /vju?/, like view) is a progressive framework for building user interfaces. Vue (读音 /vju?/,类似于 view) 是一套用于构建用户界面的渐进式(优秀的可定制化 ...
分类:
其他好文 时间:
2021-01-13 10:57:24
阅读次数:
0
<el-menu :default-active="element.active" :router="element.router" > <el-menu-item style="margin-left: 150px;" index="/index">首页</el-menu-item> <el-me ...
分类:
其他好文 时间:
2021-01-13 10:42:09
阅读次数:
0
1.虚拟环境概念: 虚拟环境是指一个主机上虚拟的相对独立的运行环境,使得单个项目的运行环境与其它项目互不影响. 2. python为什么要用虚拟环境: 在python中,要使用某个工具包时,通过 sudo pip install 工具 进行安装,这种安装方式会将工具包安装到/usr/local/li ...
分类:
编程语言 时间:
2021-01-13 10:38:59
阅读次数:
0