摘要: hook ajax返回一般用于返回解密的时候的断点 (function() { var origOpen = XMLHttpRequest.prototype.open; XMLHttpRequest.prototype.open = function() { // console.log('req 阅读全文
posted @ 2022-08-22 04:18 SmileBlog 阅读(25) 评论(0) 推荐(0)
摘要: getComputedStyle(对象)获取css样式的属性 offsetWidth border+padding+content offsetheight border+padding+content box-sizing:挤压内部 display:none的时候拿不到值 clientWidth 阅读全文
posted @ 2022-08-22 04:17 SmileBlog 阅读(17) 评论(0) 推荐(0)
摘要: .createElement("div") 创建节点 appendChild() 追加节点 insertBefore(要插入的节点对象,参考节点对象) removeChild(节点对象)删除节点 remove() 删除自己以及后代 replaceChild(节点对象,参考节点对象) cloneNod 阅读全文
posted @ 2022-08-16 16:51 SmileBlog 阅读(20) 评论(0) 推荐(0)
摘要: childNodes 所有节点 children 所有元素 previousSlibling 上一个文本节点 previousElementSibling 上一个元素节点 nextSlibling下一个文本节点 nextElementSibling 下一个元素节点 parentNode 与paren 阅读全文
posted @ 2022-08-16 16:22 SmileBlog 阅读(73) 评论(0) 推荐(0)
摘要: 元素节点 getElementBy.... 元素的属性节点 getAttribute 文本节点 innerText 阅读全文
posted @ 2022-08-16 15:59 SmileBlog 阅读(21) 评论(0) 推荐(0)
摘要: innerHTML 只获取文本 innerText 不解析直接返回 value 可读可写只有表单标签支持 阅读全文
posted @ 2022-08-12 15:09 SmileBlog 阅读(12) 评论(0) 推荐(0)
摘要: document.documentElement 最外层html节点rem document.head 获取head document.body 获取body document.getElementById("box") 根据id获取节点 document.getElementsByClassNam 阅读全文
posted @ 2022-08-11 23:07 SmileBlog 阅读(31) 评论(0) 推荐(0)
摘要: localStorage.setItem("name","hhh") 存 localStorage.getItem("name") 取 localStorage.removeItem("name") 删 localStorage.clear() 永久存储 sessionStorage.setItem 阅读全文
posted @ 2022-08-11 16:37 SmileBlog 阅读(26) 评论(0) 推荐(0)
摘要: 获取浏览器窗口 window.innerHeight高 window.innerWidth 宽 弹出层 alert 提示框 询问框 confirm() 返回 true 或者false prompt 输入框 地址信息 window.location.href 可读可写 reload 重新加载 =刷新 阅读全文
posted @ 2022-08-09 22:06 SmileBlog 阅读(25) 评论(0) 推荐(0)
摘要: var time=setTimeout(要执行的函数,多长时间以后执行 单位毫秒) 注册定时器 返回句柄 setInterval(要执行的函数,多长时间以后执行 单位毫秒) 注册间隔定时器 返回句柄 clearTimeout() clearInterval() 阅读全文
posted @ 2022-08-09 21:15 SmileBlog 阅读(22) 评论(0) 推荐(0)