- 博客(7)
- 收藏
- 关注
原创 css relative and absolute
position:absolute和position:relative是两个html中常用到的样式,前者是绝对定位. 定位基于最近的一个已经定位的祖先元素,如果没有找到,就基于根元素进行定位,后者是相对定位,基于自身的位置进行偏移。 ...
2021-07-01 03:49:15
208
原创 js高级程序设计note
1 .2 BOM {location, navigator, screen, 弹出新窗口} 2 .1 script标签 : 一般放在body后面 async: 立即下载脚本,但是不会中断页面和其他脚本的加载执行。 derfer:延迟下载 src: if you use it, can not add code in this element, code will be ignored. browser will sent a get request to get this src. type: app
2021-05-18 03:07:42
260
原创 阻止冒泡
阻止冒泡 IE与众不同 // stop bubble 传入事件 function stopBubble(event){ if(window.event){ window.event.cancelBubble = true }else{ event.stopPropagation() } }
2021-05-11 23:36:17
73
原创 BOM DOM
BOM和DOM js 包括 ES, DOM, BOM DOM = {BOM(document), location、navigator、screen、history、frames} BOM = {forms、location、anchors、images、links} BOM DOM操作: creatElement(element)创建一个新的元素节点. creatTextNode()创建一个包含给定文本的新文本节点. appendChild()指定节点的最后一个节点列表后添加一个新的子节. insert
2021-05-11 23:27:20
46
原创 cookie, seesion, storage, indexDB
cookie, seesion, storage, indexDB http do not have state 1.Cookie 4k, could set expires and max-time usage: http header || document.cookie maintain user page’s state (Store user’s info in browser but too small, not secure) 2.Localstorage 5m, long time usag
2021-05-10 22:55:30
75
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人