Quick Start 导入 Jedis 所需要的 jar 包:Commons-pool-1.6.jar、Jedis-2.1.0.jar 编写程序测试连通性 public class Test { public static void main(String[] args) { Jedis jedi ...
分类:
其他好文 时间:
2020-09-17 13:00:03
阅读次数:
26
发送按钮悬停效果 效果图 HTML <div id="send-btn"> <button> // 这里是一个svg的占位 Send </button> </div> CSS #send-btn{ display: flex; align-items: center; justify-content ...
分类:
Web程序 时间:
2020-09-17 11:59:12
阅读次数:
50
针对css selector和xpath的优先级做一个简单的说明 在项目中我们可能用的最多的是css或者xpath,那么针对这两种,我们优先选择css,原因在哪些? 原因1:css是配合html来工作,它实现的原理是匹配对象的原理,而xpath是配合xml工作的,它实现的原理是遍历的原理,所以两者在 ...
分类:
Web程序 时间:
2020-09-16 12:13:03
阅读次数:
54
监听复选框 监听点击事件 两个按钮放在<script>中 <script type="text/html" id="toolbarDemo"> <div class="layui-btn-container demoTable"> <button class="layui-btn layui-btn ...
分类:
其他好文 时间:
2020-09-16 12:11:02
阅读次数:
32
@{ ViewBag.Title = "测试页"; Layout = "~/Views/Shared/_LayoutPage.cshtml"; } <div> 上传文件 <input type="file" id="file" /> <br /> <input type="button" id="u ...
分类:
移动开发 时间:
2020-09-14 19:00:22
阅读次数:
56
1.键盘事件 键盘事件是指当用户操作键盘的时候会自动被触发的事件,通常分为以下三种 ① keydown,用户按下任意键都可以触发这个事件,如果按住不放,事件会被连续触发 ② keypress,用户按下任意键都可以触发这个事件,如果按住不放,事件会被连续触发 这里的任意键是指可显示的键,不包括功能键 ...
分类:
Web程序 时间:
2020-09-12 21:34:09
阅读次数:
51
Android 开发第五讲 学习Button了解Button属性 一丶Button的分类 1.1 Android Button类型 根据Android 官网文档所属. Button可以定义三种形式的 Button 类型 ImageButton 图标类型的 带有android:drawableLeft ...
分类:
移动开发 时间:
2020-09-10 23:10:55
阅读次数:
67
平时在做项目的时候,一般会遇到在某个时候开启定时器,在离开这个页面的时候卸载掉这个定时器 通常我们都是这样写 <button @click="onClick">定时器开启</button> methods: { onClick() { this.time = setInterval(() => { ...
分类:
其他好文 时间:
2020-09-10 23:02:47
阅读次数:
40
一.发送效果 HTML <div id="send-btn"> <button> // 这里是一个svg的占位 Send </button> </div> CSS #send-btn{ display: flex; align-items: center; justify-content: cent ...
分类:
Web程序 时间:
2020-09-09 18:51:19
阅读次数:
50
一)节点属性操作 ①获取属性值 ★DOM节点.属性名 //不能获取用户自定义的属性 ★DOM节点.getAttribute(属性名) //万能 ②设计属性值 ★DOM节点.属性名 = 属性值 ★DOM节点.setAttribute(属性名,属性值) ③删除属性值 ★DOM节点.属性名 = ' ' / ...
分类:
其他好文 时间:
2020-09-08 21:04:30
阅读次数:
59