原生input 类型为file时需要对不同参数做出调整 <input type="file" name="file" id="file" accpet=".doc,.docx,application/msword,application/vnd.openxmlformats-officedocume ...
分类:
其他好文 时间:
2021-05-24 06:06:15
阅读次数:
0
修改原生Input 的 file输入框的样式 此处使用了障眼法用以实现与element的相同样式 1.在HTML中使用时可以通过input的label进行快捷的输入框调用 <div> <label for="file" style="position: absolute;"> <div class= ...
分类:
其他好文 时间:
2021-05-24 06:04:34
阅读次数:
0
1.向JDBC读数据 object SparkSQL02_Datasource { def main(args: Array[String]): Unit = { //创建上下文环境配置对象 val conf: SparkConf = new SparkConf().setMaster("local ...
分类:
数据库 时间:
2021-05-24 05:59:48
阅读次数:
0
目的 将一些重复的代码交给IDEA生成,我们只需要关注那些可变的参数。 步骤 进入以下选项 File → Settings → Editor → Live Templates 2. 3.设置一个组名 MyTemplates 在 MyTemplates中新增一个代码模板 效果展示 默认为 Tab键代码 ...
分类:
其他好文 时间:
2021-05-24 05:58:31
阅读次数:
0
文件上传 1.前端加入表单 <form method="POST" , action = "/Upload", enctype="multipart/form-data"> <input type="file", name = "file"/><br> <input type="submit", v ...
分类:
Web程序 时间:
2021-05-24 05:55:31
阅读次数:
0
问题:控制台输出了乱码 解决: 1、找到settings 2、点击appearance 3、找到file encoding 4、找到idea 的 bin 文件夹下的如下两个文件 5、在两个文件的底部分别加上 -Dfile.encoding=UTF-8 6、重启后 ...
分类:
其他好文 时间:
2021-05-24 05:54:51
阅读次数:
0
Thymeleaf官网: https://www.thymeleaf.org/ 一 、Thymeleaf是什么? Thymeleaf是一个流行的模板引擎,该模板引擎采用Java语言开发,模板引擎是一个技术名词,是跨领域跨平台的概念,在Java语言体系下有模板引擎,在C#、PHP语言体系下也有模板引擎 ...
分类:
其他好文 时间:
2021-05-24 05:36:05
阅读次数:
0
MISC: 签到 1、附件下下来是一个名为EBCDIC的文件,打开后看不懂 上网查到,EBCDIC为一种较为古老的编码方式,最初是对着百科的EBCDIC表一个个写下来的,写完提交还是会有错。 后发现010支持直接解码。 WEB: find_it 题目可以扫描,找到robots.txt 随后提示你需要 ...
分类:
其他好文 时间:
2021-05-24 05:30:27
阅读次数:
0
问题原因: WPF 打开本地图片,同时另一个进程去访问这个图片; BitmapImage bitmap = new BitmapImage(); bitmap.BeginInit(); bitmap.UriSource = new Uri(filePath); bitmap.EndInit(); I ...
es6语法的map和set 一:Set集合 类似于数组,但是成员的值都是唯一的, Set本身是一个构造函数用来生成Set数据结构 Set集合的常用方法: add() 添加值,返回Set结构本身 const set = new Set() set.add(1) set.add(1) set.add(2 ...
分类:
其他好文 时间:
2021-05-24 05:17:47
阅读次数:
0