插槽 将元素作为承载分发内容的出口 <todo-button> Add todo </todo-button> // to-do 组件模板 <button> <slot></slot> </button> 插槽可以包含任何的模板代码 HTML 组件 如果template中没有包含一个元素,则该组件起 ...
分类:
其他好文 时间:
2021-03-06 14:21:29
阅读次数:
0
组件传参 散记点(父传子) v-bind传入Number,Function,Object等类型 <mycomponent :count="100" :data="{name: "wise"}" :list="['foo','bar']" :action="() => {}"/> 传递组件,组件变量形 ...
分类:
其他好文 时间:
2021-03-06 14:19:47
阅读次数:
0
SpringBoot集成Swagger2 1、新建springboot+web项目 2、导入相关的依赖 <!-- https://mvnrepository.com/artifact/io.springfox/springfox-swagger2 --> <dependency> <groupId> ...
分类:
编程语言 时间:
2021-03-06 14:18:12
阅读次数:
0
练习71: 题目: 编写input()和output()函数输入,输出5个学生的数据记录。 程序: N = 5 # stu # num : string # name : string # score[4]: list student = [] for i in range(5): student. ...
分类:
编程语言 时间:
2021-03-06 14:13:52
阅读次数:
0
1、目前工作上有一堆的ip地址,ip是ok的,但是需要找出来不在这里面的其他ip import os a = list() with open('ip.txt','r') as f: #print(f.readlines()) for line in f.readlines(): a.append( ...
分类:
其他好文 时间:
2021-03-05 13:28:22
阅读次数:
0
1 def list_of_groups(init_list, childern_list_len): 2 ''' 3 :param init_list: 4 :param childern_list_len: 5 :return: 6 ''' 7 list_of_group = zip(*(ite ...
分类:
编程语言 时间:
2021-03-05 13:23:08
阅读次数:
0
git add 命令可将该文件添加到暂存区。 添加一个或多个文件到暂存区: git add [file1] [file2] ... 添加指定目录到暂存区,包括子目录: git add [dir] 添加当前目录下的所有文件到暂存区: git add . 以下实例我们添加两个文件: $ touch RE ...
分类:
其他好文 时间:
2021-03-05 13:19:45
阅读次数:
0
F12打开控制台,直接拷贝以下代码回车,注意修改页号为当前页 var targetPageNum = 1; //修改为当前观看到的页号,第一个为1。 var menuList = $(jQuery('.list-box .duration')); if(targetPageNum < 0 || ta ...
分类:
其他好文 时间:
2021-03-05 13:13:11
阅读次数:
0
一、引用两个js库 <script src="/js/jspdf.debug.js"></script> <script src="/js/html2canvas.js"></script> 二、实现导出PDF /** * 导出PDF * @param id */ exportPdf:functio ...
分类:
Web程序 时间:
2021-03-05 13:08:22
阅读次数:
0
用nginx反向代理、uwsgi部署django的过程中,session可能在request中通过request.session.get()获取不到,其可能的原因有两种: 一、nginx反向代理的过程中,因为域名变化,可能会获取不到,需要将cookie的路径通过nginx也要反射出去。在nginx. ...
分类:
其他好文 时间:
2021-03-05 13:07:59
阅读次数:
0