vue代码: 1 <template> 2 <div> 3 <div class="main"> 4 <ul> 5 <li 6 v-for="(item, index) in list" 7 :key="index" 8 :class="{ new: item.new }" 9 @click="Op ...
分类:
其他好文 时间:
2021-03-15 11:03:20
阅读次数:
0
文件备份与重命名 # 2种方式打开文件、备份文件、 import os # 打开文件 class FileOpen: @staticmethod def file_open1(file): fp = open(file, "w+", encoding="utf-8") # 无需flush,因为clo ...
分类:
其他好文 时间:
2021-03-15 10:54:22
阅读次数:
0
Vue的模板实现方式 一种是基本的template模式 一种是render函数结合jsx 一种是render结合createElement render提升了Vue的编程能力 从单线程异步角度来说,开发是对时间的管理 开发也是代码的管理,是对逻辑的管理, 设计模式发生的范畴就是逻辑领域 最近看到一句 ...
分类:
其他好文 时间:
2021-03-15 10:51:22
阅读次数:
0
GET _cat/templates GET /_template/* PUT _template/test1_template { "order": 0, "version": 1, "index_patterns": [ "test1-*" ], "settings": { "index": { ...
分类:
其他好文 时间:
2021-03-12 11:40:33
阅读次数:
0
python内置的装饰器property的使用: property这个装饰器一般使用在类中,我们可以用@property装饰器来创建只读属性,@property装饰器会将装饰的方法转换为相同名称的只读属性,可以与所定义的属性配合使用,这样可以防止属性被修改。 使用场景: 在类中修饰方法,使得方法可以 ...
分类:
编程语言 时间:
2021-03-11 11:43:47
阅读次数:
0
html构造表单 <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> </head> <body> <form method="post" action="upload_file.php" enctype="mul ...
分类:
Web程序 时间:
2021-03-11 10:30:42
阅读次数:
0
SpringMVC概述 springMVC是一个基于spring的一个框架,是spring的一个模块,可以大大简化web开发的难度。 web开发的底层依然是servlet,框架是在servlet基础上的一些封装 springMVC就是一个spring,spring是容器,通过ioc管理对象,spri ...
分类:
编程语言 时间:
2021-03-10 13:24:07
阅读次数:
0
v-on的理解 监听DOM元素的事件,并在触发时执行一些js代码 <template> <div> <!-- v-on监听DOM事件,并在触发时做一些js的操作,如下代码可以将js操作直接放在事件中 --> <button v-on:click="num++">点击按钮+1</button> <h3 ...
分类:
其他好文 时间:
2021-03-10 13:23:30
阅读次数:
0
【0】默认文件内容 #(1)cluster#cluster.name:集群名称 # 默认名称为 elasticsearch#(2)node #node.name:node-1 #默认为计算机名,但应该为节点起一个描述性名称 #node.attr.rack:r1 #添加自定义的节点属性 #(3)pat ...
分类:
其他好文 时间:
2021-03-10 13:08:38
阅读次数:
0
代码例子如下 public class Father{ private int i = test(); private static int j = method(); static{ System.out.print("(1)"); } Father(){ System.out.print("(2 ...
分类:
其他好文 时间:
2021-03-09 13:44:24
阅读次数:
0