js--DOM操作 dom获取 DOM获取 //参数是字符串 document.getElementById() 获取特定 ID 元素的节点 document.getElementsByTagName() 获取相同元素的节点列表 document.getElementsByName() 获取相同名称 ...
分类:
Web程序 时间:
2020-05-03 00:34:42
阅读次数:
76
.命令,就是按点号键:重复上次操作 u命令:撤消上次操作 所谓“”上次操作“,”是指两次普通模式间完成的操作,比如从普通模式进入插入模式后,再返回普通模式,这其间在插入模式下完成的所有操作都算上次操作。当然,在普通模式下完成的操作,一个操作就是一个“上次操作“ ^: 移动到行首;$: 移动到行尾 a ...
分类:
系统相关 时间:
2020-05-02 19:18:25
阅读次数:
63
1、开放端口 firewall-cmd --zone=public --add-port=5672/tcp --permanent # 开放5672端口 firewall-cmd --zone=public --remove-port=5672/tcp --permanent #关闭5672端口 f ...
分类:
其他好文 时间:
2020-05-02 09:52:21
阅读次数:
55
HTML和js之间的交互是通过事件实现的。 事件流描述的是从页面中接受事件的顺序。 事件流 IE中的事件流是事件冒泡流。顺序是从里向外 eg:div-body-html-Document Netscape Communicator的事件流是事件捕获流。顺序是从外向里 eg:Document-html ...
分类:
Web程序 时间:
2020-05-02 00:03:18
阅读次数:
68
除请求对象之外,还有一个 session 对象。它允许你在不同请求间存储特定用户的信息。它是在 Cookies 的基础上实现的,并且对 Cookies 进行密钥签名要使用会话,你需要设置一个密钥。 设置:session['username'] = 'xxx' 删除:session.pop('user ...
分类:
其他好文 时间:
2020-05-01 19:03:22
阅读次数:
61
背景 在做Electron Windows 桌面应用时候,做鼠标悬浮到托盘图标上时显示一个悬浮框(例如做消息提醒),但因为Windows没有提供托盘mouse-enter/mouse-leave事件,无法直接做这个功能,考虑到还有mouse-move事件,弄个间接的方式实现。 实现步骤 1、监听mo ...
```javapackage 链表;/** * https://leetcode-cn.com/problems/remove-linked-list-elements/ * 203. 移除链表元素 * * 解题思路 :使用哨兵 */public class _203_Remove_Linked_L... ...
分类:
其他好文 时间:
2020-05-01 01:13:01
阅读次数:
52
不定时更新命令 常用的如: move copy dir del 移动 复制 查看目录 删除文件 还有常用 echo 可以打印变量、结合 插入符还可以创建文件,以上都是常用的可以去学习一下 跳出当前处理过程: ctrl + c 退出控制台 exit 关于杀掉进程: // 查看系统全部进程 // 查看命 ...
1. package LH; public class Point { int x; int y; Point() { } Point(int x0, int y0) { this.x = x0; this.y= y0; } void movePoint(int dx,int dy) { this. ...
分类:
其他好文 时间:
2020-04-30 15:47:53
阅读次数:
55
/// <summary> /// 去除特殊字符 /// </summary> /// <param name="str">待处理的字符串</param> /// <returns></returns> public static string RemoveSpecialChar(string st ...
分类:
其他好文 时间:
2020-04-30 15:10:50
阅读次数:
94