“JS API”目录存档
2022年11月30日,星期三

你所想到的,所需要的JS文本节点处理方法、思路和代码,这里应该都有,查找、分割、合并、选区遍历,标签替换……
阅读全文…
标签:append, childNodes, cloneNode, closest, createNodeIterator, createTextNode, getSelection, isEqualNode, isSameNode, node, normalize(), prepend(), replaceChildren, replaceWith(), splitText, Text, 节点
发布在 JS API, JS实例 | 10 条评论 »
2021年11月24日,星期三

本文标题虽然是 visibilitychange,但实际上讲的是包括 pagehide, unload, beforeunload 等事件在内的Web页面生命周期知识,希望本文的整理可以帮到大家的学习。
阅读全文…
标签:beforeunload, Event, hash, history, pagehide, pageshow, sendBeacon, visibilitychange, wasDiscarded, 生命周期
发布在 JS API | 14 条评论 »
2021年11月2日,星期二

主要介绍 currentTarget、currentScript、currentTime、currentNode 和 currentSrc 这5个属性 API,有些是 JS 对象属性,有些是 HTML 对象属性,都挺有用的。
阅读全文…
标签:childNodes, createEvent, createNodeIterator, createTreeWalker, currentScript, currentSrc, currentTarget, currentTime, NodeIterator, srcset, TreeWalker
发布在 HTML相关, JS API | 4 条评论 »