摘要:
20230129 默写通过 20230218 完全忘了 [原链接](https://www.acwing.com/problem/content/788/ 题目 #include<cstdio> #include<iostream> #include<cstdlib> using namespace 阅读全文
posted @ 2023-01-14 23:20
垂序葎草
阅读(13)
评论(0)
推荐(0)
摘要:
定义 unordered_set将相同哈希值的键值放在相同的桶中 unordered_set<Key> s; 增 insert() 插入指定元素 删 erase() 删除指定元素 1.根据指定key删除 2.根据迭代器位置删除 查 count() 值为key的元素存在则返回1,不存在则返回0 阅读全文
posted @ 2023-01-14 20:50
垂序葎草
阅读(62)
评论(0)
推荐(0)
摘要:
unordered_map参考博客 区别在于unordered_multimap允许键值冗余,即key值可以是一样的,但是unordered_map不允许。 定义 主要使用的也是模板的前2个参数<键,值> unordered_map<const Key, T> map; 增 insert()/map 阅读全文
posted @ 2023-01-14 20:00
垂序葎草
阅读(150)
评论(0)
推荐(0)
摘要:
 阅读全文
posted @ 2023-01-14 02:01
垂序葎草
阅读(17)
评论(0)
推荐(0)
摘要:
视频 为什么要用事件委托:新增的dom元素没有对应点击事件。子元素的事件交给父元素来代为处理。父元素要知道是哪个子元素发生的。 <!DOCTYPE HTML> <html> <head> <meta charset="UTF-8"> <title>20_事件委托2</title> </head> < 阅读全文
posted @ 2023-01-14 01:47
垂序葎草
阅读(65)
评论(0)
推荐(0)
摘要:
视频 <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>19_事件切换</title> </head> <style type="text/css"> * { margin: 0px; } .div1 { position: ab 阅读全文
posted @ 2023-01-14 01:07
垂序葎草
阅读(23)
评论(0)
推荐(0)
摘要:
视频 <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>18_事件绑定与解绑</title> </head> <style type="text/css"> * { margin: 0px; } .out { position: 阅读全文
posted @ 2023-01-14 00:42
垂序葎草
阅读(75)
评论(0)
推荐(0)
浙公网安备 33010602011771号